public class ScriptSecurityManager
extends java.lang.SecurityManager
| Constructor and Description |
|---|
ScriptSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccept(java.lang.String host,
int sPort_p)
Throws a SecurityException if the calling thread is not permitted to accept a socket connection from the
specified host and port number.
|
void |
checkAccess(java.lang.Thread sT_p)
Throws a SecurityException if the calling thread is not allowed to modify the thread argument.
|
void |
checkAccess(java.lang.ThreadGroup sG_p)
Throws a SecurityException if the calling thread is not allowed to modify the thread group argument.
|
void |
checkAwtEventQueueAccess()
Throws a SecurityException if the calling thread is not allowed to access the AWT event queue.
|
void |
checkConnect(java.lang.String host,
int sPort_p)
Throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified
host and port number.
|
void |
checkConnect(java.lang.String host,
int sPort_p,
java.lang.Object sContext_p)
Throws a SecurityException if the specified security context is not allowed to open a socket connection
to the specified host and port number.
|
void |
checkCreateClassLoader()
Throws a SecurityException if the calling thread is not allowed to create a new class loader.
|
void |
checkDelete(java.lang.String file)
Throws a SecurityException if the calling thread is not allowed to delete the specified file.
|
void |
checkExec(java.lang.String sCmd_p)
Throws a SecurityException if the calling thread is not allowed to create a subprocess.
|
void |
checkExit(int status)
Throws a SecurityException if the calling thread is not allowed to cause the Java Virtual Machine to halt
with the specified status code.
|
void |
checkLink(java.lang.String lib)
Throws a SecurityException if the calling thread is not allowed to dynamic link the library code specified
by the string argument file.
|
void |
checkListen(int sPort_p)
Throws a SecurityException if the calling thread is not allowed to wait for a connection request on the
specified local port number.
|
void |
checkMemberAccess(java.lang.Class<?> sClazz_p,
int sWhich_p)
Throws a SecurityException if the calling thread is not allowed to access members.
|
void |
checkMulticast(java.net.InetAddress sMaddr_p)
Deprecated.
|
void |
checkMulticast(java.net.InetAddress sMaddr_p,
byte sTtl_p)
Throws a SecurityException if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.
|
void |
checkPackageAccess(java.lang.String sPkg_p)
Throws a SecurityException if the calling thread is not allowed to access the package specified by the argument.
|
void |
checkPackageDefinition(java.lang.String sPkg_p)
Throws a SecurityException if the calling thread is not allowed to define classes in the package specified
by the argument.
|
void |
checkPermission(java.security.Permission sPerm_p)
Throws a SecurityException if the requested access, specified by the given permission, is not permitted
based on the security policy currently in effect.
|
void |
checkPermission(java.security.Permission sPerm_p,
java.lang.Object sContext_p)
Throws a SecurityException if the specified security context is denied access to the resource specified by
the given permission.
|
void |
checkPrintJobAccess()
Throws a SecurityException if the calling thread is not allowed to initiate a print job request.
|
void |
checkPropertiesAccess()
Throws a SecurityException if the calling thread is not allowed to access or modify the system properties.
|
void |
checkPropertyAccess(java.lang.String sKey_p)
Throws a SecurityException if the calling thread is not allowed to access the system property with the
specified key name.
|
void |
checkRead(java.io.FileDescriptor fd)
Throws a SecurityException if the calling thread is not allowed to read from the specified file descriptor.
|
void |
checkRead(java.lang.String file)
Throws a SecurityException if the calling thread is not allowed to read the file specified by the string
argument.
|
void |
checkRead(java.lang.String file,
java.lang.Object sContext_p)
Throws a SecurityException if the specified security context is not allowed to read the file specified by
the string argument.
|
void |
checkSecurityAccess(java.lang.String sTarget_p)
Determines whether the permission with the specified permission target name should be granted or denied.
|
void |
checkSetFactory()
Throws a SecurityException if the calling thread is not allowed to set the socket factory used by ServerSocket
or Socket, or the stream handler factory used by URL.
|
void |
checkSystemClipboardAccess()
Throws a SecurityException if the calling thread is not allowed to access the system clipboard.
|
boolean |
checkTopLevelWindow(java.lang.Object sWindow_p)
Returns false if the calling thread is not trusted to bring up the top-level window indicated by the window
argument.
|
void |
checkWrite(java.io.FileDescriptor fd)
Throws a SecurityException if the calling thread is not allowed to write to the specified file descriptor.
|
void |
checkWrite(java.lang.String file)
Throws a SecurityException if the calling thread is not allowed to write to the file specified by the
string argument.
|
public void checkConnect(java.lang.String host,
int sPort_p,
java.lang.Object sContext_p)
checkConnect in class java.lang.SecurityManagerpublic void checkConnect(java.lang.String host,
int sPort_p)
checkConnect in class java.lang.SecurityManagerpublic void checkMemberAccess(java.lang.Class<?> sClazz_p,
int sWhich_p)
checkMemberAccess in class java.lang.SecurityManagerpublic void checkPackageAccess(java.lang.String sPkg_p)
checkPackageAccess in class java.lang.SecurityManagerpublic void checkPermission(java.security.Permission sPerm_p,
java.lang.Object sContext_p)
checkPermission in class java.lang.SecurityManagerpublic void checkPermission(java.security.Permission sPerm_p)
checkPermission in class java.lang.SecurityManagerpublic void checkSecurityAccess(java.lang.String sTarget_p)
checkSecurityAccess in class java.lang.SecurityManagerpublic void checkAccept(java.lang.String host,
int sPort_p)
checkAccept in class java.lang.SecurityManagerpublic void checkAccess(java.lang.Thread sT_p)
checkAccess in class java.lang.SecurityManagerpublic void checkAccess(java.lang.ThreadGroup sG_p)
checkAccess in class java.lang.SecurityManagerpublic void checkAwtEventQueueAccess()
checkAwtEventQueueAccess in class java.lang.SecurityManagerpublic void checkCreateClassLoader()
checkCreateClassLoader in class java.lang.SecurityManagerpublic void checkDelete(java.lang.String file)
checkDelete in class java.lang.SecurityManagerpublic void checkExec(java.lang.String sCmd_p)
checkExec in class java.lang.SecurityManagerpublic void checkExit(int status)
checkExit in class java.lang.SecurityManagerpublic void checkLink(java.lang.String lib)
checkLink in class java.lang.SecurityManagerpublic void checkListen(int sPort_p)
checkListen in class java.lang.SecurityManagerpublic void checkMulticast(java.net.InetAddress sMaddr_p,
byte sTtl_p)
checkMulticast in class java.lang.SecurityManagerpublic void checkMulticast(java.net.InetAddress sMaddr_p)
checkMulticast in class java.lang.SecurityManagerpublic void checkPackageDefinition(java.lang.String sPkg_p)
checkPackageDefinition in class java.lang.SecurityManagerpublic void checkPrintJobAccess()
checkPrintJobAccess in class java.lang.SecurityManagerpublic void checkPropertiesAccess()
checkPropertiesAccess in class java.lang.SecurityManagerpublic void checkPropertyAccess(java.lang.String sKey_p)
checkPropertyAccess in class java.lang.SecurityManagerpublic void checkRead(java.io.FileDescriptor fd)
checkRead in class java.lang.SecurityManagerpublic void checkRead(java.lang.String file,
java.lang.Object sContext_p)
checkRead in class java.lang.SecurityManagerpublic void checkRead(java.lang.String file)
checkRead in class java.lang.SecurityManagerpublic void checkSetFactory()
checkSetFactory in class java.lang.SecurityManagerpublic void checkSystemClipboardAccess()
checkSystemClipboardAccess in class java.lang.SecurityManagerpublic boolean checkTopLevelWindow(java.lang.Object sWindow_p)
checkTopLevelWindow in class java.lang.SecurityManagerpublic void checkWrite(java.io.FileDescriptor fd)
checkWrite in class java.lang.SecurityManagerpublic void checkWrite(java.lang.String file)
checkWrite in class java.lang.SecurityManager