FileDocCategorySizeDatePackage
SecurityActions.javaAPI DocJBoss 4.2.16250Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

SecurityActions

public class SecurityActions extends Object
A collection of privileged actions for this package
author
Scott.Stark@jboss.org
version
$Revison:$

Fields Summary
Constructors Summary
Methods Summary
static java.lang.ClassLoadergetContextClassLoader()

      return TCLAction.UTIL.getContextClassLoader();
   
static java.lang.ClassLoadergetContextClassLoader(java.lang.Thread thread)

      return TCLAction.UTIL.getContextClassLoader(thread);
   
public static org.jboss.security.RunAsIdentitypeekRunAsIdentity(int depth)

      PrivilegedAction action = new PeekRunAsRoleAction(depth);
      RunAsIdentity principal = (RunAsIdentity) AccessController.doPrivileged(action);
      return principal;
   
static voidsetContextClassLoader(java.lang.ClassLoader loader)

      TCLAction.UTIL.setContextClassLoader(loader);
   
static voidsetContextClassLoader(java.lang.Thread thread, java.lang.ClassLoader loader)

      TCLAction.UTIL.setContextClassLoader(thread, loader);
   
static java.lang.StringsetContextID(java.lang.String contextID)

      PrivilegedAction action = new SetContextID(contextID);
      String previousID = (String) AccessController.doPrivileged(action);
      return previousID;