Package wt.security

Class PropAccess

java.lang.Object
wt.security.Access
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 Details

    • 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.

      Supported API: true
      Parameters:
      parentFrame - the parent frame for security dialog boxes that may be presented
    • 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()

      Supported API: true
      Parameters:
      props - the Properties object used within the set
      Throws:
      WTSecurityException
    • getSystemProperty

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

      Supported API: true
      Parameters:
      key - the key for the property being requested
      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