当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
SubjectAssociation - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.security
Class SubjectAssociation
java.lang.Object
org.jboss.portal.security.SubjectAssociation
- public class SubjectAssociation
- extends java.lang.Object
ThreadLocal holder of the currently athenticated subject that is active for a given thread.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubjectAssociation
public SubjectAssociation()
setSubject
public static void setSubject(PortalSubject subject)
- Store the PortalSubject into thread local storage
- Parameters:
subject
- the portal subject to store in the thread
getSubject
public static PortalSubject getSubject()
- Returns:
- the PortalSubject from the thread local storage