Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » security » [javadoc | source]
org.apache.catalina.security
public final class: SecurityUtil [javadoc | source]
java.lang.Object
   org.apache.catalina.security.SecurityUtil
This utility class associates a Subject to the current AccessControlContext. When a SecurityManager is used, * the container will always associate the called thread with an AccessControlContext * containing only the principal of the requested Servlet/Filter. This class uses reflection to invoke the invoke methods.
Method from org.apache.catalina.security.SecurityUtil Summary:
doAsPrivilege,   doAsPrivilege,   doAsPrivilege,   doAsPrivilege,   doAsPrivilege,   doAsPrivilege,   isPackageProtectionEnabled,   remove
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.security.SecurityUtil Detail:
 public static  void doAsPrivilege(String methodName,
    Servlet targetObject) throws Exception 
    Perform work as a particular Subject. Here the work will be granted to a null subject.
 public static  void doAsPrivilege(String methodName,
    Filter targetObject) throws Exception 
    Perform work as a particular Subject. Here the work will be granted to a null subject.
 public static  void doAsPrivilege(String methodName,
    Servlet targetObject,
    Class[] targetType,
    Object[] targetArguments) throws Exception 
    Perform work as a particular Subject. Here the work will be granted to a null subject.
 public static  void doAsPrivilege(String methodName,
    Filter targetObject,
    Class[] targetType,
    Object[] targetArguments) throws Exception 
    Perform work as a particular Subject. Here the work will be granted to a null subject.
 public static  void doAsPrivilege(String methodName,
    Servlet targetObject,
    Class[] targetType,
    Object[] targetArguments,
    Principal principal) throws Exception 
    Perform work as a particular Subject. Here the work will be granted to a null subject.
 public static  void doAsPrivilege(String methodName,
    Filter targetObject,
    Class[] targetType,
    Object[] targetArguments,
    Principal principal) throws Exception 
    Perform work as a particular Subject. Here the work will be granted to a null subject.
 public static boolean isPackageProtectionEnabled() 
    Return the SecurityManager only if Security is enabled AND package protection mechanism is enabled.
 public static  void remove(Object cachedObject) 
    Remove the object from the cache.