Package org.globus.gsi.gssapi.jaas
Class JaasSubject
java.lang.Object
org.globus.gsi.gssapi.jaas.JaasSubject
- Direct Known Subclasses:
GlobusSubject
,StandardSubject
Generic JAAS Subject helper API that provides abstraction layer on top of
vendor-specific JAAS Subject extensions implementations.
Most vendors defined their own JAAS Subject helper classes because of the
Subject propagation issue in JAAS.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
doAs
(Subject subject, PrivilegedAction action) A convenience method, callsJaasSubject.getJaasSubject().runAs()
.static Object
doAs
(Subject subject, PrivilegedExceptionAction action) A convenience method, callsJaasSubject.getJaasSubject().runAs()
.static Subject
A convenience method, callsJaasSubject.getJaasSubject().getSubject()
.static JaasSubject
Gets current implementation of theJaasSubject
API.abstract Subject
SPI method.abstract Object
runAs
(Subject subject, PrivilegedAction action) SPI method.abstract Object
runAs
(Subject subject, PrivilegedExceptionAction action) SPI method.
-
Field Details
-
i18n
-
subject
-
-
Constructor Details
-
JaasSubject
protected JaasSubject()
-
-
Method Details
-
getJaasSubject
Gets current implementation of theJaasSubject
API. The method attempts to load aJaasSubject
implementation by loading a class specified by the "org.globus.jaas.provider" system property. If the property is not set the default Globus implementation is loaded. -
getSubject
SPI method. -
runAs
SPI method. -
runAs
public abstract Object runAs(Subject subject, PrivilegedExceptionAction action) throws PrivilegedActionException SPI method.- Throws:
PrivilegedActionException
-
doAs
public static Object doAs(Subject subject, PrivilegedExceptionAction action) throws PrivilegedActionException A convenience method, callsJaasSubject.getJaasSubject().runAs()
.- Throws:
PrivilegedActionException
-
doAs
A convenience method, callsJaasSubject.getJaasSubject().runAs()
. -
getCurrentSubject
A convenience method, callsJaasSubject.getJaasSubject().getSubject()
.
-