Package org.globus.gsi.gssapi.jaas
Class GlobusSubject
java.lang.Object
org.globus.gsi.gssapi.jaas.JaasSubject
org.globus.gsi.gssapi.jaas.GlobusSubject
An implementation of the
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSPI method.runAs
(Subject subject, PrivilegedAction action) SPI method.runAs
(Subject subject, PrivilegedExceptionAction action) SPI method.Methods inherited from class org.globus.gsi.gssapi.jaas.JaasSubject
doAs, doAs, getCurrentSubject, getJaasSubject
-
Field Details
-
subjects
-
-
Constructor Details
-
GlobusSubject
protected GlobusSubject()
-
-
Method Details
-
getSubject
Description copied from class:JaasSubject
SPI method.- Specified by:
getSubject
in classJaasSubject
-
runAs
Description copied from class:JaasSubject
SPI method.- Specified by:
runAs
in classJaasSubject
-
runAs
public Object runAs(Subject subject, PrivilegedExceptionAction action) throws PrivilegedActionException Description copied from class:JaasSubject
SPI method.- Specified by:
runAs
in classJaasSubject
- Throws:
PrivilegedActionException
-