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