Package org.apache.shiro.web.mgt
Class DefaultWebSubjectFactory
java.lang.Object
org.apache.shiro.mgt.DefaultSubjectFactory
org.apache.shiro.web.mgt.DefaultWebSubjectFactory
- All Implemented Interfaces:
org.apache.shiro.mgt.SubjectFactory
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.shiro.subject.SubjectcreateSubject(org.apache.shiro.subject.SubjectContext context) protected org.apache.shiro.subject.SubjectnewSubjectInstance(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.Methods inherited from class org.apache.shiro.mgt.DefaultSubjectFactory
newSubjectInstance
-
Constructor Details
-
DefaultWebSubjectFactory
public DefaultWebSubjectFactory()
-
-
Method Details
-
createSubject
public org.apache.shiro.subject.Subject createSubject(org.apache.shiro.subject.SubjectContext context) - Specified by:
createSubjectin interfaceorg.apache.shiro.mgt.SubjectFactory- Overrides:
createSubjectin classorg.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 - overridecreateSubject(org.apache.shiro.subject.SubjectContext)directly if you need to instantiate a customSubjectclass.
-
createSubject(org.apache.shiro.subject.SubjectContext)directly if you need to instantiate a customSubjectclass.