de.jreality.util
Class Secure

java.lang.Object
  extended by de.jreality.util.Secure

public class Secure
extends 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

Constructor Summary
Secure()
           
 
Method Summary
static
<T> T
doPrivileged(PrivilegedAction<T> action)
           
static String getProperty(String name)
           
static String getProperty(String name, String def)
           
static String setProperty(String name, String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Secure

public Secure()
Method Detail

getProperty

public static String getProperty(String name,
                                 String def)

getProperty

public static String getProperty(String name)

setProperty

public static String setProperty(String name,
                                 String value)

doPrivileged

public static <T> T doPrivileged(PrivilegedAction<T> action)