Class DefaultWebSubjectFactory

java.lang.Object
org.apache.shiro.mgt.DefaultSubjectFactory
org.apache.shiro.web.mgt.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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.shiro.subject.Subject
    createSubject(org.apache.shiro.subject.SubjectContext context)
     
    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.

    Methods inherited from class org.apache.shiro.mgt.DefaultSubjectFactory

    newSubjectInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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.