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

UNKNOWN: updated to 1.5

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

Method Detail

run

public 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: doPrivileged AccessController