| java.lang.Object org.apache.catalina.security.SecurityUtil
SecurityUtil | final public class SecurityUtil (Code) | | 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.
author: Jean-Francois Arcand |
Method Summary | |
public static void | doAsPrivilege(String methodName, Servlet targetObject) Perform work as a particular Subject. | public static void | doAsPrivilege(String methodName, Servlet targetObject, Class[] targetType, Object[] targetArguments) Perform work as a particular Subject. | public static void | doAsPrivilege(String methodName, Servlet targetObject, Class[] targetType, Object[] targetArguments, Principal principal) Perform work as a particular Subject. | public static void | doAsPrivilege(String methodName, Filter targetObject) Perform work as a particular Subject. | public static void | doAsPrivilege(String methodName, Filter targetObject, Class[] targetType, Object[] targetArguments) Perform work as a particular Subject. | public static void | remove(Object cachedObject) Remove the object from the cache. |
doAsPrivilege | public static void doAsPrivilege(String methodName, Servlet targetObject) throws java.lang.Exception(Code) | | Perform work as a particular Subject. Here the work
will be granted to a null subject.
Parameters: methodName - the method to apply the security restriction Parameters: targetObject - the Servlet on which the method willbe called. |
doAsPrivilege | public static void doAsPrivilege(String methodName, Servlet targetObject, Class[] targetType, Object[] targetArguments) throws java.lang.Exception(Code) | | Perform work as a particular Subject. Here the work
will be granted to a null subject.
Parameters: methodName - the method to apply the security restriction Parameters: targetObject - the Servlet on which the method willbe called. Parameters: targetType - Class array used to instanciate a iMethod object. Parameters: targetArguments - Object array contains the runtime parameters instance. |
doAsPrivilege | public static void doAsPrivilege(String methodName, Servlet targetObject, Class[] targetType, Object[] targetArguments, Principal principal) throws java.lang.Exception(Code) | | Perform work as a particular Subject. Here the work
will be granted to a null subject.
Parameters: methodName - the method to apply the security restriction Parameters: targetObject - the Servlet on which the method willbe called. Parameters: targetType - Class array used to instanciate a Method object. Parameters: targetArguments - Object array contains the runtime parameters instance. Parameters: principal - the Principal to which the security privilege apply.. |
doAsPrivilege | public static void doAsPrivilege(String methodName, Filter targetObject) throws java.lang.Exception(Code) | | Perform work as a particular Subject. Here the work
will be granted to a null subject.
Parameters: methodName - the method to apply the security restriction Parameters: targetObject - the Filter on which the method will be called. |
doAsPrivilege | public static void doAsPrivilege(String methodName, Filter targetObject, Class[] targetType, Object[] targetArguments) throws java.lang.Exception(Code) | | Perform work as a particular Subject. Here the work
will be granted to a null subject.
Parameters: methodName - the method to apply the security restriction Parameters: targetObject - the Filter on which the method will be called. Parameters: targetType - Class array used to instanciate aMethod object. Parameters: targetArguments - Object array contains the runtime parameters instance. |
remove | public static void remove(Object cachedObject)(Code) | | Remove the object from the cache.
Parameters: cachedObject - The object to remove |
|
|