Methods Summary |
---|
static java.security.Principal | getCallerPrincipal()
return (Principal)AccessController.doPrivileged(new PrivilegedAction(){
public Object run()
{
return SecurityAssociation.getCallerPrincipal();
}});
|
static javax.security.auth.Subject | getContextSubject()
if (System.getSecurityManager() == null)
{
return PolicyContextActions.NON_PRIVILEGED.getContextSubject();
}
else
{
return PolicyContextActions.PRIVILEGED.getContextSubject();
}
|
static org.jboss.security.RunAsIdentity | peekRunAsIdentity()
if(System.getSecurityManager() == null)
{
return RunAsIdentityActions.NON_PRIVILEGED.peek();
}
else
{
return RunAsIdentityActions.PRIVILEGED.peek();
}
|
static org.jboss.security.RunAsIdentity | popRunAsIdentity()
if(System.getSecurityManager() == null)
{
return RunAsIdentityActions.NON_PRIVILEGED.pop();
}
else
{
return RunAsIdentityActions.PRIVILEGED.pop();
}
|
static void | pushRunAsIdentity(org.jboss.security.RunAsIdentity principal)
if(System.getSecurityManager() == null)
{
RunAsIdentityActions.NON_PRIVILEGED.push(principal);
}
else
{
RunAsIdentityActions.PRIVILEGED.push(principal);
}
|
static java.lang.String | setContextID(java.lang.String contextID)
PrivilegedAction action = new SetContextID(contextID);
String previousID = (String) AccessController.doPrivileged(action);
return previousID;
|