public class AccessControllerExecutor extends Object implements ActionExecutor
PrivilegedExceptionAction
with the AccessController
.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
Object |
execute(PrivilegedExceptionAction<Object> action)
Execute a
PrivilegedExceptionAction . |
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
actionpublic Object execute(PrivilegedExceptionAction<Object> action) throws PrivilegedActionException
ActionExecutor
PrivilegedExceptionAction
.execute
in interface ActionExecutor
action
- the action to runPrivilegedActionException
- if the execution of the action failsCopyright © 2005–2021 Codehaus. All rights reserved.