|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.security.service.SecurityManager
Constructor Summary | |
SecurityManager()
|
Method Summary | |
static void |
checkKernelIdentity(weblogic.security.acl.internal.AuthenticatedSubject s)
Throws an exception if the Subject passed in is not kernel identity. |
static void |
checkKernelPermission()
If we are using Java 2 security and on the server, check to see if we currently have RuntimePermission("weblogic.kernelPermission"). |
static weblogic.security.acl.internal.AuthenticatedSubject |
getCurrentSubject(weblogic.security.acl.internal.AuthenticatedSubject kernelId)
Return the current threads client identity, return an empty Subject instance if the current subject is null. |
static weblogic.security.acl.internal.AuthenticatedSubject |
getDefaultUser()
|
static boolean |
isKernelIdentity(weblogic.security.acl.internal.AuthenticatedSubject s)
Returns true if the Subject passed in is the kernel identity. |
static void |
popSubject(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity)
On the behalf of the initiator pop the subject identity off the thread stack. |
static void |
pushSubject(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity,
weblogic.security.acl.internal.AuthenticatedSubject userIdentity)
On the behalf of the initiator push the subject identity onto the thread stack. |
static java.lang.Object |
runAs(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity,
weblogic.security.acl.internal.AuthenticatedSubject userIdentity,
java.security.PrivilegedAction action)
Execution privileged action on behalf of the user identity. |
static java.lang.Object |
runAs(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity,
weblogic.security.acl.internal.AuthenticatedSubject userIdentity,
java.security.PrivilegedExceptionAction action)
Execution privileged exception action on behalf of the user identity. |
static void |
setDefaultUser(weblogic.security.acl.internal.AuthenticatedSubject user)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SecurityManager()
Method Detail |
public static weblogic.security.acl.internal.AuthenticatedSubject getCurrentSubject(weblogic.security.acl.internal.AuthenticatedSubject kernelId)
kernelID
- the kernel ID as returned by running doPrivileged on
PrivilegedActions.getKernelIdentityAction()public static void pushSubject(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity, weblogic.security.acl.internal.AuthenticatedSubject userIdentity)
kernelIdentity
- an AuthenticatedSubject representing the kernelIDuserIdentity
- an AuthenticatedSubject representing the identity
to pushpublic static void popSubject(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity)
kernelIdentity
- Initiatating subject identity, must be kernel.public static java.lang.Object runAs(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity, weblogic.security.acl.internal.AuthenticatedSubject userIdentity, java.security.PrivilegedAction action)
kernelIdentity
- Identity of the initiating identity, must be
kernel.userIdentity
- Identity to perform action on behalf of.action
- Privileged action to perform.public static java.lang.Object runAs(weblogic.security.acl.internal.AuthenticatedSubject kernelIdentity, weblogic.security.acl.internal.AuthenticatedSubject userIdentity, java.security.PrivilegedExceptionAction action) throws java.security.PrivilegedActionException
kernelIdentity
- Identity of the initiating identity, must be
kernel.userIdentity
- Identity to perform action on behalf of.action
- Privileged exception action to perform.public static void checkKernelPermission()
public static boolean isKernelIdentity(weblogic.security.acl.internal.AuthenticatedSubject s)
s
- the Subject to test for equality with the kernel identitypublic static void checkKernelIdentity(weblogic.security.acl.internal.AuthenticatedSubject s)
s
- the Subject to test for equality with the kernel identitypublic static void setDefaultUser(weblogic.security.acl.internal.AuthenticatedSubject user)
public static weblogic.security.acl.internal.AuthenticatedSubject getDefaultUser()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81b |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |