AccessController.doPrivileged on the
PrivilegedAction object. This interface is used only for
computations that do not throw checked exceptions; computations that
throw checked exceptions must use PrivilegedExceptionAction
instead.
AccessController, AccessController#doPrivileged(PrivilegedAction), PrivilegedExceptionAction
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: a class-dependent value that may represent the results of the computation. Each class that implementsPrivilegedAction
should document what (if anything) this value represents.Performs the computation. |
| run | back to summary |
|---|---|
| public T run() Performs the computation. This method will be called by
| |