Example usage for Java java.lang SecurityManager fields, constructors, methods, implement or subclass
The text is from its open source code.
SecurityManager() Constructs a new SecurityManager . |
void | checkAccept(String host, int port) Throws a SecurityException if the calling thread is not permitted to accept a socket connection from the specified host and port number. |
void | checkAccess(Thread t) Throws a SecurityException if the calling thread is not allowed to modify the thread argument. |
void | checkAccess(ThreadGroup g) Throws a SecurityException if the calling thread is not allowed to modify the thread group argument. |
void | checkConnect(String host, int port) Throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number. |
void | checkConnect(String host, int port, Object context) 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(String file) Throws a SecurityException if the calling thread is not allowed to delete the specified file. |
void | checkExec(String cmd) 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(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 port) Throws a SecurityException if the calling thread is not allowed to wait for a connection request on the specified local port number. |
void | checkMulticast(InetAddress maddr) Throws a SecurityException if the calling thread is not allowed to use (join/leave/send/receive) IP multicast. |
void | checkPackageAccess(String pkg) Throws a SecurityException if the calling thread is not allowed to access the specified package. |
void | checkPackageDefinition(String pkg) Throws a SecurityException if the calling thread is not allowed to define classes in the specified package. |
void | checkPermission(Permission perm) 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(Permission perm, Object context) 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(String key) Throws a SecurityException if the calling thread is not allowed to access the system property with the specified key name. |
void | checkRead(FileDescriptor fd) Throws a SecurityException if the calling thread is not allowed to read from the specified file descriptor. |
void | checkRead(String file) Throws a SecurityException if the calling thread is not allowed to read the file specified by the string argument. |
void | checkRead(String file, Object context) Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument. |
void | checkSecurityAccess(String target) 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 | checkWrite(FileDescriptor fd) Throws a SecurityException if the calling thread is not allowed to write to the specified file descriptor. |
void | checkWrite(String file) Throws a SecurityException if the calling thread is not allowed to write to the file specified by the string argument. |
Class> | getClass() Returns the runtime class of this Object . |
Class>[] | getClassContext() Returns the current execution stack as an array of classes. |
Object | getSecurityContext() Creates an object that encapsulates the current execution environment. |
ThreadGroup | getThreadGroup() Returns the thread group into which to instantiate any new thread being created at the time this is being called. |