|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.proxy.toys.privilege.AccessControllerExecutor
public class AccessControllerExecutor
Execution of a PrivilegedExceptionAction with the AccessController.
| Constructor Summary | |
|---|---|
AccessControllerExecutor()
Construct an AccessControllerExecutor that runs a PrivilegedExceptionAction with
the privileges of the AccessControlContext of the caller. |
|
AccessControllerExecutor(AccessControlContext context)
Construct an AccessControllerExecutor that runs a PrivilegedExceptionAction with
special privileges. |
|
| Method Summary | |
|---|---|
Object |
execute(PrivilegedExceptionAction<Object> action)
Execute a PrivilegedExceptionAction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessControllerExecutor()
PrivilegedExceptionAction with
the privileges of the AccessControlContext of the caller.
public AccessControllerExecutor(AccessControlContext context)
PrivilegedExceptionAction with
special privileges.
context - the AccessControlContext defining the privileges used to run the
action| Method Detail |
|---|
public Object execute(PrivilegedExceptionAction<Object> action)
throws PrivilegedActionException
ActionExecutorPrivilegedExceptionAction.
execute in interface ActionExecutoraction - the action to run
PrivilegedActionException - if the execution of the action fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||