java.security
Interface PrivilegedAction
java.lang.Object
|
+--java.security.PrivilegedAction
public interface PrivilegedAction
This interface specifes a single run
method that
executes a privileged operation. This method is called by
AccessController.doPrivileged()
after that method
activiates the required privileges.
Since:Author:- Aaron M. Renn (arenn@urbanophile.com)
See Also:
run
public Object run()
This method performs an operation that requires higher privileges to
perform. It is called when a section of code invokes
AccessController.doPrivileged()
.
Returns:
- obj An implementation dependent return value
See Also:
run
method that executes a privileged operation. This method is called byAccessController.doPrivileged()
after that method activiates the required privileges.