public class GlobusSubject extends JaasSubject
JaasSubject API to circumvent
the JAAS problem of Subject propagation. The implementation uses
a stackable version of
InheritableThreadLocal
class to associate the Subject object with the current thread.
Any new thread started within a thread that has a Subject object
associated with it, will inherit the parent's Subject object.
Also, nested doAs, runAs calls are supported.| Modifier | Constructor and Description |
|---|---|
protected |
GlobusSubject() |
| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.Subject |
getSubject()
SPI method.
|
java.lang.Object |
runAs(javax.security.auth.Subject subject,
java.security.PrivilegedAction action)
SPI method.
|
java.lang.Object |
runAs(javax.security.auth.Subject subject,
java.security.PrivilegedExceptionAction action)
SPI method.
|
doAs, doAs, getCurrentSubject, getJaasSubjectpublic javax.security.auth.Subject getSubject()
JaasSubjectgetSubject in class JaasSubjectpublic java.lang.Object runAs(javax.security.auth.Subject subject,
java.security.PrivilegedAction action)
JaasSubjectrunAs in class JaasSubjectpublic java.lang.Object runAs(javax.security.auth.Subject subject,
java.security.PrivilegedExceptionAction action)
throws java.security.PrivilegedActionException
JaasSubjectrunAs in class JaasSubjectjava.security.PrivilegedActionExceptionCopyright © 2013. All Rights Reserved.