de.jreality.util
Class Secure
java.lang.Object
de.jreality.util.Secure
public class Secure
- extends java.lang.Object
A class for managing access to system resources, especially for the case
when the application is running in a secure environment and must be
careful how it accesses system properties.
- Author:
- gunn
Method Summary |
static
|
doPrivileged(java.security.PrivilegedAction<T> action)
|
static java.lang.String |
getProperty(java.lang.String name)
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String def)
|
static java.lang.String |
setProperty(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Secure
public Secure()
getProperty
public static java.lang.String getProperty(java.lang.String name,
java.lang.String def)
getProperty
public static java.lang.String getProperty(java.lang.String name)
setProperty
public static java.lang.String setProperty(java.lang.String name,
java.lang.String value)
doPrivileged
public static <T> T doPrivileged(java.security.PrivilegedAction<T> action)