public final class Security extends Object
| Modifier and Type | Field and Description |
|---|---|
private static weblogic.security.acl.internal.AuthenticatedSubject |
kernelID |
| Constructor and Description |
|---|
Security() |
| Modifier and Type | Method and Description |
|---|---|
static Subject |
getCurrentSubject()
Returns a javax.security.auth.Subject object.
|
static Object |
runAs(Subject user,
PrivilegedAction action)
Executes a privileged action on behalf of the user identity.
|
static Object |
runAs(Subject user,
PrivilegedExceptionAction action)
Executes a privileged exception action on behalf of the user identity.
|
public static Object runAs(Subject user, PrivilegedAction action)
user - Identity to perform action on behalf ofaction - Privileged action to performSecurityException - thrown if the subject or actions are nullpublic static Object runAs(Subject user, PrivilegedExceptionAction action) throws PrivilegedActionException
user - Identity to perform action on behalf ofaction - Privileged exception action to performSecurityException - thrown if the subject or actions are nullPrivilegedActionException - For exceptions generated during
execution of the privileged exception actionpublic static Subject getCurrentSubject()