java.security
Interface PrivilegedExceptionAction
java.lang.Object
|
+--java.security.PrivilegedExceptionAction
public interface PrivilegedExceptionAction
This interface defines a method that is called by
AccessController.doPrivileged() in order to perform a
privileged operation with higher privileges enabled. This interface
differs from PrivilegedAction in that the run
method in this interface may throw a checked exception.
Since:Author:- Aaron M. Renn (arenn@urbanophile.com)
run
public Object run() This method performs an operation that requires higher privileges to
successfully complete. It is called when a section of code invokes
AccessController.doPrivileged().
Returns:
- obj An implementation defined return value
Throws:
Exception - An implementation specific exception
See Also:
AccessController.doPrivileged()in order to perform a privileged operation with higher privileges enabled. This interface differs fromPrivilegedActionin that therunmethod in this interface may throw a checked exception.