org.apache.shiro.cas
Class CasSubjectFactory
java.lang.Object
org.apache.shiro.mgt.DefaultSubjectFactory
org.apache.shiro.web.mgt.DefaultWebSubjectFactory
org.apache.shiro.cas.CasSubjectFactory
- All Implemented Interfaces:
- SubjectFactory
public class CasSubjectFactory
- extends DefaultWebSubjectFactory
Subject implementation to be used in CAS-enabled applications.
- Since:
- 1.2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CasSubjectFactory
public CasSubjectFactory()
createSubject
public Subject createSubject(SubjectContext context)
- Description copied from interface:
SubjectFactory
- Creates a new Subject instance reflecting the state of the specified contextual data. The data would be
anything required to required to construct a
Subject instance and its contents can vary based on
environment.
Any data supported by Shiro core will be accessible by one of the SubjectContext's get*
or resolve* methods. All other data is available as map attributes.
- Specified by:
createSubject in interface SubjectFactory- Overrides:
createSubject in class DefaultWebSubjectFactory
- Parameters:
context - the contextual data to be used by the implementation to construct an appropriate Subject
instance.
- Returns:
- a
Subject instance created based on the specified context. - See Also:
SubjectContext
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.