A convenience class for retrieving the string value of a system
property as a privileged action. This class is directly copied
from sun.security.action.GetPropertyAction in order to avoid
depending on the sun.security.action package.
An instance of this class can be used as the argument of
AccessController.doPrivileged .
The following code retrieves the value of the system
property named "prop" as a privileged action:
String s = (String) java.security.AccessController.doPrivileged(
new GetPropertyAction("prop"));
|