SecurityManager Members

SecurityManager Members

Class Overview | This Package | All Packages

Fields
Name Description
inCheck This field is true if there is a security check in progress; false otherwise.

Constructors
Name Description
SecurityManager() Constructs a new SecurityManager.

Methods
Name Description
checkAccept(String, int) Throws a SecurityException if the calling thread is not permitted to accept a socket connection from the specified host and port number.
checkAccess(Thread) Throws a SecurityException if the calling thread is not allowed to modify the thread argument.
checkAccess(ThreadGroup) Throws a SecurityException if the calling thread is not allowed to modify the thread group argument.
checkAwtEventQueueAccess() Tests if a client can get access to the AWT event queue.
checkConnect(String, int) Throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number.
checkConnect(String, int, Object) Throws a SecurityException if the specified security context is not allowed to open a socket connection to the specified host and port number.
checkCreateClassLoader() Throws a SecurityException if the calling thread is not allowed to create a new class loader.
checkDelete(String) Throws a SecurityException if the calling thread is not allowed to delete the specified file.
checkExec(String) Throws a SecurityException if the calling thread is not allowed to create a subprocss.
checkExit(int) Throws a SecurityException if the calling thread is not allowed to cause the Java Virtual Machine to halt with the specified status code.
checkLink(String) Throws a SecurityException if the calling thread is not allowed to dynamic link the library code specified by the string argument file.
checkListen(int) Throws a SecurityException if the calling thread is not allowed to wait for a connection request on the specified local port number.
checkMemberAccess(Class, int) Tests if a client is allowed to access members.
checkMulticast(InetAddress) Tests if current execution context is allowed to use (join/leave/send/receive) IP multicast.
checkMulticast(InetAddress, byte) Tests to see if current execution context is allowed to use (join/leave/send/receive) IP multicast.
checkPackageAccess(String) Throws a SecurityException if the calling thread is not allowed to access the package specified by the argument.
checkPackageDefinition(String) Throws a SecurityException if the calling thread is not allowed to define classes in the package specified by the argument.
checkPrintJobAccess() Tests if a client can initiate a print job request.
checkPropertiesAccess() Throws a SecurityException if the calling thread is not allowed to access or modify the system properties.
checkPropertyAccess(String) Throws a SecurityException if the calling thread is not allowed to access the system property with the specified key name.
checkRead(FileDescriptor) Throws a SecurityException if the calling thread is not allowed to read from the specified file descriptor.
checkRead(String) Throws a SecurityException if the calling thread is not allowed to read the file specified by the string argument.
checkRead(String, Object) Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument.
checkSecurityAccess(String) Tests access to certain operations for a security API action.
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.
checkSystemClipboardAccess() Tests if a client can get access to the system clipboard.
checkTopLevelWindow(Object) Returns false if the calling thread is not trusted to bring up the top-level window indicated by the window argument.
checkWrite(FileDescriptor) Throws a SecurityException if the calling thread is not allowed to write to the specified file descriptor.
checkWrite(String) Throws a SecurityException if the calling thread is not allowed to write to the file specified by the string argument.
classDepth(String) Returns the stack depth of the specified class.
classLoaderDepth() Returns the stack depth of the most recently executing method from a class defined using a class loader.
currentClassLoader() Returns an object describing the most recent class loader executing on the stack.
currentLoadedClass() Returns the current Class with a ClassLoader on the execution stack.
getClassContext() Returns the current execution stack as an array of classes.
getInCheck() Tests if there is a security check in progress.
getSecurityContext() Creates an object that encapsulates the current execution environment.
getThreadGroup() Returns the thread group into which to instantiate any new thread being created at the time this is being called.
inClass(String) Tests if the specified String is in this Class.
inClassLoader() Tests if the current ClassLoader is equal to null.