Class DefaultWebSubjectFactory

  • All Implemented Interfaces:
    org.apache.shiro.mgt.SubjectFactory

    public class DefaultWebSubjectFactory
    extends org.apache.shiro.mgt.DefaultSubjectFactory
    A SubjectFactory implementation that creates WebDelegatingSubject instances.

    WebDelegatingSubject instances are required if Request/Response objects are to be maintained across threads when using the Subject createCallable and createRunnable methods.

    Since:
    1.0
    • Constructor Detail

      • DefaultWebSubjectFactory

        public DefaultWebSubjectFactory()
    • Method Detail

      • createSubject

        public org.apache.shiro.subject.Subject createSubject​(org.apache.shiro.subject.SubjectContext context)
        Specified by:
        createSubject in interface org.apache.shiro.mgt.SubjectFactory
        Overrides:
        createSubject in class org.apache.shiro.mgt.DefaultSubjectFactory
      • newSubjectInstance

        @Deprecated
        protected org.apache.shiro.subject.Subject newSubjectInstance​(org.apache.shiro.subject.PrincipalCollection principals,
                                                                      boolean authenticated,
                                                                      String host,
                                                                      org.apache.shiro.session.Session session,
                                                                      javax.servlet.ServletRequest request,
                                                                      javax.servlet.ServletResponse response,
                                                                      org.apache.shiro.mgt.SecurityManager securityManager)
        Deprecated.
        since 1.2 - override createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.