wt.security
Class PropAccess

java.lang.Object
  extended by wt.security.Access
      extended by wt.security.PropAccess

public class PropAccess
extends wt.security.Access

Class that provides wrappers to priviledged property methods using the wt.security package. This allows applets to perform property operations that are typically restricted by the sandbox.

Supported API: true


Method Summary
 Properties getEnv()
          Retrieves the system environment properties as per System.getenv().
 String getEnv(String key)
          Retrieves the system environment properties as per System.getenv(key).
static PropAccess getPropAccess()
          Get instance of PropAccess.
static PropAccess getPropAccess(Frame parentFrame)
          Get instance of PropAccess.
 Properties getSystemProperties()
          Wrapper for System.getProperties()

Supported API: true
 String getSystemProperty(String key)
          Wrapper for System.getProperty()
 void setSystemProperties(Properties props)
          Wrapper for System.setProperties()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropAccess

public static PropAccess getPropAccess(Frame parentFrame)
Get instance of PropAccess. This instance can then be used to perform property operation that are typically restricted by the sandbox.

Parameters:
parentFrame - the parent frame for security dialog boxes that may be presented

Supported API: true

getPropAccess

public static PropAccess getPropAccess()
Get instance of PropAccess. This instance can then be used to perform property operation that are typically restricted by the sandbox.

Supported API: true


getSystemProperties

public final Properties getSystemProperties()
                                     throws WTSecurityException
Wrapper for System.getProperties()

Supported API: true

Throws:
WTSecurityException

setSystemProperties

public final void setSystemProperties(Properties props)
                               throws WTSecurityException
Wrapper for System.setProperties()

Parameters:
props - the Properties object used within the set

Supported API: true
Throws:
WTSecurityException

getSystemProperty

public final String getSystemProperty(String key)
                               throws WTSecurityException
Wrapper for System.getProperty()

Parameters:
key - the key for the property being requested

Supported API: true
Throws:
WTSecurityException

getEnv

public final Properties getEnv()
                        throws WTSecurityException
Retrieves the system environment properties as per System.getenv().

Supported API: true

Throws:
WTSecurityException

getEnv

public final String getEnv(String key)
                    throws WTSecurityException
Retrieves the system environment properties as per System.getenv(key).

Supported API: true

Throws:
WTSecurityException