public class DefaultWebSubjectFactory extends DefaultSubjectFactory
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.
| Constructor and Description |
|---|
DefaultWebSubjectFactory()
|
| Modifier and Type | Method and Description |
|---|---|
Subject |
createSubject(SubjectContext
|
protected Subject |
newSubjectInstance(PrincipalCollection
Deprecated.
since 1.2 - override
createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.
|
newSubjectInstancepublic SubjectcreateSubject(SubjectContext context)
@Deprecated protected SubjectnewSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, ServletRequest request, ServletResponse response, SecurityManager securityManager)
createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.