public class AccessControllerExecutor extends java.lang.Object implements ActionExecutor
PrivilegedExceptionAction with the AccessController.| Modifier and Type | Field and Description |
|---|---|
private java.security.AccessControlContext |
context |
| Constructor and Description |
|---|
AccessControllerExecutor()
Construct an AccessControllerExecutor that runs a
PrivilegedExceptionAction with
the privileges of the AccessControlContext of the caller. |
AccessControllerExecutor(java.security.AccessControlContext context)
Construct an AccessControllerExecutor that runs a
PrivilegedExceptionAction with
special privileges. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(java.security.PrivilegedExceptionAction<java.lang.Object> action)
Execute a
PrivilegedExceptionAction. |
public AccessControllerExecutor()
PrivilegedExceptionAction with
the privileges of the AccessControlContext of the caller.public AccessControllerExecutor(java.security.AccessControlContext context)
PrivilegedExceptionAction with
special privileges.context - the AccessControlContext defining the privileges used to run the
actionpublic java.lang.Object execute(java.security.PrivilegedExceptionAction<java.lang.Object> action)
throws java.security.PrivilegedActionException
ActionExecutorPrivilegedExceptionAction.execute in interface ActionExecutoraction - the action to runjava.security.PrivilegedActionException - if the execution of the action fails