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