public abstract class JaasSubject
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JaasSubject() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
doAs(javax.security.auth.Subject subject,
java.security.PrivilegedAction action)
A convenience method, calls
JaasSubject.getJaasSubject().runAs() |
static java.lang.Object |
doAs(javax.security.auth.Subject subject,
java.security.PrivilegedExceptionAction action)
A convenience method, calls
JaasSubject.getJaasSubject().runAs() |
static javax.security.auth.Subject |
getCurrentSubject()
A convenience method, calls
JaasSubject.getJaasSubject().getSubject() |
static JaasSubject |
getJaasSubject()
Gets current implementation of the
JaasSubject API. |
abstract javax.security.auth.Subject |
getSubject()
SPI method.
|
abstract java.lang.Object |
runAs(javax.security.auth.Subject subject,
java.security.PrivilegedAction action)
SPI method.
|
abstract java.lang.Object |
runAs(javax.security.auth.Subject subject,
java.security.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 javax.security.auth.Subject getSubject()
public abstract java.lang.Object runAs(javax.security.auth.Subject subject, java.security.PrivilegedAction action)
public abstract java.lang.Object runAs(javax.security.auth.Subject subject, java.security.PrivilegedExceptionAction action) throws java.security.PrivilegedActionException
java.security.PrivilegedActionException
public static java.lang.Object doAs(javax.security.auth.Subject subject, java.security.PrivilegedExceptionAction action) throws java.security.PrivilegedActionException
JaasSubject.getJaasSubject().runAs()
.
java.security.PrivilegedActionException
public static java.lang.Object doAs(javax.security.auth.Subject subject, java.security.PrivilegedAction action)
JaasSubject.getJaasSubject().runAs()
.
public static javax.security.auth.Subject getCurrentSubject()
JaasSubject.getJaasSubject().getSubject()
.
Copyright © 2012. All Rights Reserved.