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
public class DefaultWebSubjectFactory extends org.apache.shiro.mgt.DefaultSubjectFactoryASubjectFactoryimplementation that createsWebDelegatingSubjectinstances.WebDelegatingSubjectinstances are required if Request/Response objects are to be maintained across threads when using theSubjectcreateCallableandcreateRunnablemethods.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description DefaultWebSubjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.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.since 1.2 - overridecreateSubject(org.apache.shiro.subject.SubjectContext)directly if you need to instantiate a customSubjectclass.
-
-
-
Method Detail
-
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.
-
-