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
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptionfinal PropertiesgetEnv()Retrieves the system environment properties as per System.getenv().final StringRetrieves the system environment properties as per System.getenv(key).static PropAccessGet instance ofPropAccess.static PropAccessgetPropAccess(Frame parentFrame) Get instance ofPropAccess.final PropertiesWrapper for System.getProperties()
Supported API: truefinal StringgetSystemProperty(String key) Wrapper for System.getProperty()
Supported API: truefinal voidsetSystemProperties(Properties props) Wrapper for System.setProperties()
Supported API: true
-
Method Details
-
getPropAccess
Get instance ofPropAccess. 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
Get instance ofPropAccess. This instance can then be used to perform property operation that are typically restricted by the sandbox.
Supported API: true -
getSystemProperties
Wrapper for System.getProperties()
Supported API: true- Throws:
WTSecurityException
-
setSystemProperties
Wrapper for System.setProperties()
Supported API: true- Parameters:
props- the Properties object used within the set- Throws:
WTSecurityException
-
getSystemProperty
Wrapper for System.getProperty()
Supported API: true- Parameters:
key- the key for the property being requested- Throws:
WTSecurityException
-
getEnv
Retrieves the system environment properties as per System.getenv().
Supported API: true- Throws:
WTSecurityException
-
getEnv
Retrieves the system environment properties as per System.getenv(key).
Supported API: true- Throws:
WTSecurityException
-