public class DefaultWebSubjectFactory
extends org.apache.shiro.mgt.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 |
|---|---|
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. |
public org.apache.shiro.subject.Subject createSubject(org.apache.shiro.subject.SubjectContext context)
createSubject in interface org.apache.shiro.mgt.SubjectFactorycreateSubject in class org.apache.shiro.mgt.DefaultSubjectFactory@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)
createSubject(org.apache.shiro.subject.SubjectContext) directly if you
need to instantiate a custom Subject class.Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.