java.security
Interface PrivilegedAction<T>


public interface PrivilegedAction<T>

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:
1.1
See Also:
AccessController, PrivilegedExceptionAction

Method Summary
 T run()
          This method performs an operation that requires higher privileges to perform.
 

Method Detail

run

T 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:
AccessController.doPrivileged(PrivilegedAction), AccessController.doPrivileged(PrivilegedAction, AccessControlContext)