Method Summary |
|
public void | checkAccept(String host, int port) Checks whether the running program is allowed to accept socket
connections. |
public void | checkAccess(Thread thread) Checks whether the running program is allowed to modify the thread. |
public void | checkAccess(ThreadGroup group) Checks whether the running program is allowed to modify the thread group. |
public void | checkAwtEventQueueAccess() Checks whether the running program is allowed to access the AWT Event
queue. |
public void | checkConnect(String host, int port) Checks whether the running program is allowed to establish socket
connections. |
public void | checkConnect(String host, int port, Object context) Checks whether the given security context is allowed to establish socket
connections. |
public void | checkCreateClassLoader() Checks whether the running program is allowed to create a class loader. |
public void | checkDelete(String file) Checks whether the running program is allowed to delete the file named by
the argument, which should be passed in canonical form. |
public void | checkExec(String cmd) Checks whether the running program is allowed to execute the specified
platform specific command. |
public void | checkExit(int status) Checks whether the running program is allowed to terminate itself. |
public void | checkLink(String libName) Checks whether the running program is allowed to load the specified
native library. |
public void | checkListen(int port) Checks whether the running program is allowed to listen on the specified
port. |
public void | checkMemberAccess(Class> cls, int type) Checks whether the running program is allowed to access members. |
public void | checkMulticast(InetAddress maddr) Checks whether the running program is allowed to join, leave or send to a
multicast address. |
public void | checkMulticast(InetAddress maddr, byte ttl) Checks whether the running program is allowed to join, leave or send to a
multicast address. |
public void | checkPackageAccess(String packageName) Checks whether the running program is allowed to access the specified
package. |
public void | checkPackageDefinition(String packageName) Checks whether the running program is allowed to define new classes in
the specified package. |
public void | checkPermission(Permission permission) Checks whether the running program is allowed to access the resource
being guarded by the given Permission argument. |
public void | checkPermission(Permission permission, Object context) Checks whether the running program is allowed to access the resource
being guarded by the given Permission argument. |
public void | checkPrintJobAccess() Checks whether the running program is allowed to start a new print job. |
public void | checkPropertiesAccess() Checks whether the running program is allowed to access the system
properties. |
public void | checkPropertyAccess(String key) Checks whether the running program is allowed to access a particular
system property. |
public void | checkRead(FileDescriptor fd) Checks whether the running program is allowed to read from the file whose
descriptor is the argument. |
public void | checkRead(String file) Checks whether the running program is allowed to read from the file named
by the argument, which should be passed in canonical form. |
public void | checkRead(String file, Object context) Checks whether the given security context is allowed to read from the
file named by the argument, which should be passed in canonical form. |
public void | checkSecurityAccess(String target) Checks whether the running program is allowed to perform the security
operation named by the target. |
public void | checkSetFactory() Checks whether the running program is allowed to set the net object
factories. |
public void | checkSystemClipboardAccess() Checks whether the running program is allowed to access the system
clipboard. |
public boolean | checkTopLevelWindow(Object window) Checks whether the running program is allowed to create a top level
window. |
public void | checkWrite(FileDescriptor fd) Checks whether the running program is allowed to read from the file whose
descriptor is the argument. |
public void | checkWrite(String file) Checks whether the running program is allowed to write to the file named
by the argument, which should be passed in canonical form. |
protected int | classDepth(String name) Answers the index in the stack of the first method which is contained in
a class called name . |
protected int | classLoaderDepth() Answers the index in the stack of three first class whose class loader is
not a system class loader. |
protected ClassLoader | currentClassLoader() Answers the class loader of the first class in the stack whose class
loader is not a system class loader. |
protected Class> | currentLoadedClass() Answers the first class in the stack which was loaded by a class loader
which is not a system class loader. |
protected Class[] | getClassContext() Answers an array containing one entry for each method in the stack. |
public boolean | getInCheck() Answers true if the security manager is currently checking something. |
public Object | getSecurityContext() Answers an object which encapsulates the security state of the current
point in the execution. |
public ThreadGroup | getThreadGroup() Answers the thread group which should be used to instantiate new threads. |
protected boolean | inClass(String name) Answers true if there is a method on the stack from the specified class,
and false otherwise.
Parameters: name - String the name of the class to look for. |
protected boolean | inClassLoader() Answers true if there is a method on the stack from a class which was
defined by a non-system classloader. |