org.apache.shiro.web.mgt
Class DefaultWebSubjectFactory

java.lang.Object
  extended by org.apache.shiro.mgt.DefaultSubjectFactory
      extended by 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

Constructor Summary
DefaultWebSubjectFactory()
           
 
Method Summary
 Subject createSubject(SubjectContext context)
           
protected  Subject newSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, SecurityManager securityManager)
          Deprecated. since 1.2 - override createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.
 
Methods inherited from class org.apache.shiro.mgt.DefaultSubjectFactory
newSubjectInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebSubjectFactory

public DefaultWebSubjectFactory()
Method Detail

createSubject

public Subject createSubject(SubjectContext context)
Specified by:
createSubject in interface SubjectFactory
Overrides:
createSubject in class DefaultSubjectFactory

newSubjectInstance

@Deprecated
protected Subject newSubjectInstance(PrincipalCollection principals,
                                                boolean authenticated,
                                                String host,
                                                Session session,
                                                javax.servlet.ServletRequest request,
                                                javax.servlet.ServletResponse response,
                                                SecurityManager securityManager)
Deprecated. since 1.2 - override createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.



Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.