public abstract class JaasSubject extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JaasSubject() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
PrivilegedActionExceptionpublic static Object doAs(Subject subject, PrivilegedExceptionAction action) throws PrivilegedActionException
JaasSubject.getJaasSubject().runAs().PrivilegedActionExceptionpublic static Object doAs(Subject subject, PrivilegedAction action)
JaasSubject.getJaasSubject().runAs().public static Subject getCurrentSubject()
JaasSubject.getJaasSubject().getSubject().Copyright © 2013. All Rights Reserved.