Class SetPermissionsAction
- java.lang.Object
-
- com.sun.enterprise.security.permissionsxml.SetPermissionsAction
-
- All Implemented Interfaces:
PrivilegedExceptionAction<Object>
public class SetPermissionsAction extends Object implements PrivilegedExceptionAction<Object>
Action to get declared permissions for a given module type, process them if needed, and attempt to set them in a class loader.This action will only actually do work if there's a security manager installed. If there is no such manager this will be a NO-OP.
If the client VM doesn't have the required privileges for the requested permissions an AccessControlException will be thrown.
-
-
Constructor Summary
Constructors Constructor Description SetPermissionsAction(CommponentType type, DeploymentContext deploymentContext, ClassLoader classLoader)
-
-
-
Constructor Detail
-
SetPermissionsAction
public SetPermissionsAction(CommponentType type, DeploymentContext deploymentContext, ClassLoader classLoader)
-
-
Method Detail
-
run
public Object run() throws SecurityException
- Specified by:
run
in interfacePrivilegedExceptionAction<Object>
- Throws:
SecurityException
-
-