Java java.lang SecurityManager fields, constructors, methods, implement or subclass

Example usage for Java java.lang SecurityManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang SecurityManager.

The text is from its open source code.

Subclass

java.lang.SecurityManager has subclasses.
Click this link to see all its subclasses.

Implementation

java.lang.SecurityManager has the following implementations.
Click this link to see all its implementation.

Constructor

SecurityManager()
Constructs a new SecurityManager.

Method

voidcheckAccept(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.
voidcheckAccess(Thread t)
Throws a SecurityException if the calling thread is not allowed to modify the thread argument.
voidcheckAccess(ThreadGroup g)
Throws a SecurityException if the calling thread is not allowed to modify the thread group argument.
voidcheckConnect(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.
voidcheckConnect(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.
voidcheckCreateClassLoader()
Throws a SecurityException if the calling thread is not allowed to create a new class loader.
voidcheckDelete(String file)
Throws a SecurityException if the calling thread is not allowed to delete the specified file.
voidcheckExec(String cmd)
Throws a SecurityException if the calling thread is not allowed to create a subprocess.
voidcheckExit(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.
voidcheckLink(String lib)
Throws a SecurityException if the calling thread is not allowed to dynamic link the library code specified by the string argument file.
voidcheckListen(int port)
Throws a SecurityException if the calling thread is not allowed to wait for a connection request on the specified local port number.
voidcheckMulticast(InetAddress maddr)
Throws a SecurityException if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.
voidcheckPackageAccess(String pkg)
Throws a SecurityException if the calling thread is not allowed to access the specified package.
voidcheckPackageDefinition(String pkg)
Throws a SecurityException if the calling thread is not allowed to define classes in the specified package.
voidcheckPermission(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.
voidcheckPermission(Permission perm, Object context)
Throws a SecurityException if the specified security context is denied access to the resource specified by the given permission.
voidcheckPrintJobAccess()
Throws a SecurityException if the calling thread is not allowed to initiate a print job request.
voidcheckPropertiesAccess()
Throws a SecurityException if the calling thread is not allowed to access or modify the system properties.
voidcheckPropertyAccess(String key)
Throws a SecurityException if the calling thread is not allowed to access the system property with the specified key name.
voidcheckRead(FileDescriptor fd)
Throws a SecurityException if the calling thread is not allowed to read from the specified file descriptor.
voidcheckRead(String file)
Throws a SecurityException if the calling thread is not allowed to read the file specified by the string argument.
voidcheckRead(String file, Object context)
Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument.
voidcheckSecurityAccess(String target)
Determines whether the permission with the specified permission target name should be granted or denied.
voidcheckSetFactory()
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.
voidcheckWrite(FileDescriptor fd)
Throws a SecurityException if the calling thread is not allowed to write to the specified file descriptor.
voidcheckWrite(String file)
Throws a SecurityException if the calling thread is not allowed to write to the file specified by the string argument.
ClassgetClass()
Returns the runtime class of this Object .
Class[]getClassContext()
Returns the current execution stack as an array of classes.
ObjectgetSecurityContext()
Creates an object that encapsulates the current execution environment.
ThreadGroupgetThreadGroup()
Returns the thread group into which to instantiate any new thread being created at the time this is being called.