Package org.globus.gsi.gssapi.jaas
Class GlobusSubject
- java.lang.Object
-
- org.globus.gsi.gssapi.jaas.JaasSubject
-
- org.globus.gsi.gssapi.jaas.GlobusSubject
-
public class GlobusSubject extends JaasSubject
An implementation of theJaasSubject
API to circumvent the JAAS problem of Subject propagation. The implementation uses a stackable version ofInheritableThreadLocal
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, nesteddoAs
,runAs
calls are supported.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GlobusSubject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.globus.gsi.gssapi.jaas.JaasSubject
doAs, doAs, getCurrentSubject, getJaasSubject
-
-
-
-
Method Detail
-
getSubject
public javax.security.auth.Subject getSubject()
Description copied from class:JaasSubject
SPI method.- Specified by:
getSubject
in classJaasSubject
-
runAs
public java.lang.Object runAs(javax.security.auth.Subject subject, java.security.PrivilegedAction action)
Description copied from class:JaasSubject
SPI method.- Specified by:
runAs
in classJaasSubject
-
runAs
public java.lang.Object runAs(javax.security.auth.Subject subject, java.security.PrivilegedExceptionAction action) throws java.security.PrivilegedActionException
Description copied from class:JaasSubject
SPI method.- Specified by:
runAs
in classJaasSubject
- Throws:
java.security.PrivilegedActionException
-
-