|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.security.Security
public final class Security
This class implements the WLS client runAs methods. Client applications use the runAs methods to associate their Subject identity with the PrivilagedAction or PrivilegedExceptionAction they plan to execute.
Constructor Summary | |
---|---|
Security()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Security()
Method Detail |
---|
public static Object runAs(Subject user, PrivilegedAction action)
user
- Identity to perform action on behalf ofaction
- Privileged action to perform
SecurityException
- 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 perform
SecurityException
- thrown if the subject or actions are null
PrivilegedActionException
- For exceptions generated during
execution of the privileged exception actionpublic static Subject getCurrentSubject()
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |