|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.security.Access
wt.security.RuntimeAccess
Class that provides wrappers to priviledged runtime methods using
the wt.security package. This allows applets to execute applications on the
client which is typically restricted by the sandbox.
Supported API: true
Field Summary | |
private Runtime |
runtime
|
Fields inherited from class wt.security.Access |
|
Constructor Summary | |
RuntimeAccess()
|
Method Summary | |
Process |
exec(String command)
Wrapper for Runtime.getRuntime().exec() method. |
Process |
exec(String[] cmdarray,
String[] envp)
Wrapper for Runtime.getRuntime().exec() method. |
(package private) Process |
exec0(String command)
|
(package private) Process |
exec0(String[] cmdarray,
String[] envp)
|
static RuntimeAccess |
getRuntimeAccess()
Get instance of RuntimeAccess . |
static RuntimeAccess |
getRuntimeAccess(Frame parentFrame)
Get instance of RuntimeAccess . |
void |
load(String filename)
Wrapper for Runtime.getRuntime().load() method. |
(package private) void |
load0(String filename)
|
void |
loadLibrary(String libname)
Wrapper for Runtime.getRuntime().loadLibrary() method. |
(package private) void |
loadLibrary0(String libname)
|
Process |
run(String file)
Method to load a file with the associated application. |
protected void |
setRuntime(Runtime runtime)
|
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 |
Field Detail |
private Runtime runtime
Constructor Detail |
public RuntimeAccess()
Method Detail |
public static RuntimeAccess getRuntimeAccess(Frame parentFrame)
RuntimeAccess
. This instance can then be
used to perform file operation that are typically restricted by the
sandbox.
parentFrame
- the parent frame for security dialog boxes that may be
presented
public static RuntimeAccess getRuntimeAccess()
RuntimeAccess
. This instance can then be
used to perform file operation that are typically restricted by the
sandbox.
protected void setRuntime(Runtime runtime)
public Process exec(String command) throws WTSecurityException, IOException
command
- the command to be executed
WTSecurityException
IOException
Process exec0(String command) throws WTSecurityException, IOException
WTSecurityException
IOException
public Process exec(String[] cmdarray, String[] envp) throws WTSecurityException, IOException
cmdarray
- array containing the command to call and its argumentsenvp
- array containing environment in format name=value
WTSecurityException
IOException
Process exec0(String[] cmdarray, String[] envp) throws WTSecurityException, IOException
WTSecurityException
IOException
public Process run(String file) throws WTSecurityException, IOException
file
- the file to be loaded by it's associated executable.
WTSecurityException
IOException
public void load(String filename) throws WTSecurityException
filename
- the file to load
WTSecurityException
void load0(String filename) throws WTSecurityException
WTSecurityException
public void loadLibrary(String libname) throws WTSecurityException
libname
- the name of the library
WTSecurityException
void loadLibrary0(String libname) throws WTSecurityException
WTSecurityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |