|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.jaas.JaasSubject
public abstract class JaasSubject
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.
Constructor Summary | |
---|---|
protected |
JaasSubject()
|
Method Summary | |
---|---|
static Object |
doAs(Subject subject,
PrivilegedAction action)
A convenience method, calls JaasSubject.getJaasSubject().runAs() |
static Object |
doAs(Subject subject,
PrivilegedExceptionAction action)
A convenience method, calls JaasSubject.getJaasSubject().runAs() |
static Subject |
getCurrentSubject()
A convenience method, calls JaasSubject.getJaasSubject().getSubject() |
static JaasSubject |
getJaasSubject()
Gets current implementation of the JaasSubject API. |
abstract Subject |
getSubject()
SPI method. |
abstract Object |
runAs(Subject subject,
PrivilegedAction action)
SPI method. |
abstract Object |
runAs(Subject subject,
PrivilegedExceptionAction action)
SPI method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JaasSubject()
Method Detail |
---|
public static JaasSubject getJaasSubject()
JaasSubject
API.
The method attempts to load a JaasSubject
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.
public abstract Subject getSubject()
public abstract Object runAs(Subject subject, PrivilegedAction action)
public abstract Object runAs(Subject subject, PrivilegedExceptionAction action) throws PrivilegedActionException
PrivilegedActionException
public static Object doAs(Subject subject, PrivilegedExceptionAction action) throws PrivilegedActionException
JaasSubject.getJaasSubject().runAs()
.
- Throws:
PrivilegedActionException
public static Object doAs(Subject subject, PrivilegedAction action)
JaasSubject.getJaasSubject().runAs()
.
public static Subject getCurrentSubject()
JaasSubject.getJaasSubject().getSubject()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |