org.apache.shiro.web.mgt
Class DefaultWebSubjectFactory
java.lang.Object
org.apache.shiro.mgt.DefaultSubjectFactory
org.apache.shiro.web.mgt.DefaultWebSubjectFactory
- All Implemented Interfaces:
- SubjectFactory
public class DefaultWebSubjectFactory
- extends 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
- See Also:
DefaultSubjectFactory.newSubjectInstance(org.apache.shiro.subject.PrincipalCollection, boolean, String, org.apache.shiro.session.Session, org.apache.shiro.mgt.SecurityManager)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWebSubjectFactory
public DefaultWebSubjectFactory()
createSubject
public Subject createSubject(SubjectContext context)
- Specified by:
createSubject in interface SubjectFactory- Overrides:
createSubject in class DefaultSubjectFactory
newSubjectInstance
protected Subject newSubjectInstance(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
ServletRequest request,
ServletResponse response,
SecurityManager securityManager)
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.