|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
package java.security; |
|
|
|
|
|
/** |
|
* A computation to be performed with privileges enabled. The computation is |
|
* performed by invoking {@code AccessController.doPrivileged} on the |
|
* {@code PrivilegedAction} object. This interface is used only for |
|
* computations that do not throw checked exceptions; computations that |
|
* throw checked exceptions must use {@code PrivilegedExceptionAction} |
|
* instead. |
|
* |
|
* @since 1.2 |
|
* @see AccessController |
|
* @see AccessController#doPrivileged(PrivilegedAction) |
|
* @see PrivilegedExceptionAction |
|
*/ |
|
|
|
public interface PrivilegedAction<T> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
T run(); |
|
} |