|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.security.Access
wt.security.PropAccess
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
Field Summary |
Fields inherited from class wt.security.Access |
|
Constructor Summary | |
PropAccess()
|
Method Summary | |
Properties |
getEnv()
Retrieves the system environment properties as expected from the deprecated System.getenv(). |
String |
getEnv(String key)
Retrieves the system environment properties as expected from the deprecated System.getenv() for the given key. |
(package private) Properties |
getEnv0()
|
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 |
(package private) Properties |
getSystemProperties0()
|
String |
getSystemProperty(String key)
Wrapper for System.getProperty() |
(package private) String |
getSystemProperty0(String key)
|
private Properties |
oldGetEnv0()
|
void |
setSystemProperties(Properties props)
Wrapper for System.setProperties() |
(package private) void |
setSystemProperties0(Properties props)
|
Methods inherited from class wt.security.Access |
checkAccess, checkAccessAll, checkClass, checkClass, checkClass, getAccessImpl, setParentFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropAccess()
Method Detail |
public static PropAccess getPropAccess(Frame parentFrame)
PropAccess
. This instance can then be used
to perform property operation that are typically restricted by the sandbox.
parentFrame
- the parent frame for security dialog boxes that may be
presented
public static PropAccess getPropAccess()
PropAccess
. This instance can then be used
to perform property operation that are typically restricted by the sandbox.
public Properties getSystemProperties() throws WTSecurityException
WTSecurityException
Properties getSystemProperties0() throws WTSecurityException
WTSecurityException
public void setSystemProperties(Properties props) throws WTSecurityException
props
- the Properties object used within the set
WTSecurityException
void setSystemProperties0(Properties props) throws WTSecurityException
WTSecurityException
public String getSystemProperty(String key) throws WTSecurityException
key
- the key for the property being requested
WTSecurityException
String getSystemProperty0(String key) throws WTSecurityException
WTSecurityException
public Properties getEnv() throws WTSecurityException, IOException
set
command under Windows and env
command on UNIX platforms. This method will return an empty Properties
object if the command is not found on the user's system.
WTSecurityException
IOException
Properties getEnv0() throws WTSecurityException, IOException
WTSecurityException
IOException
private Properties oldGetEnv0() throws WTSecurityException, IOException
WTSecurityException
IOException
public String getEnv(String key) throws WTSecurityException, IOException
WTSecurityException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |