API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi. RMISecurityManager View Source
Author(s)
Roger Riggs
Peter Jones
Since
JDK1.1
Version
1.32, 11/17/05
Serial
Hierarchy
 Object
      SecurityManager
          RMISecurityManager
Implements
Subclasses
Description
public class RMISecurityManager
  A subclass of SecurityManager used by RMI applications that use downloaded code.
See also:   
Constructors
public RMISecurityManager ()
  Constructs a new RMISecurityManager.
Methods
Hide/Show inherited methods
public void checkAccept (String host, int port) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not permitted to accept a socket connection from the specified host and port number.
public void checkAccess (Thread t) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to modify the thread argument.
public void checkAccess (ThreadGroup g) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to modify the thread group argument.
public void checkAwtEventQueueAccess () [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to access the AWT event queue.
public void checkConnect (String host, int port) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number.
public void checkConnect (String host, int port, Object context) [Inherited From SecurityManager]
  Throws a SecurityException if the specified security context is not allowed to open a socket connection to the specified host and port number.
public void checkCreateClassLoader () [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to create a new class loader.
public void checkDelete (String file) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to delete the specified file.
public void checkExec (String cmd) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to create a subprocess.
public void checkExit (int status) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to cause the Java Virtual Machine to halt with the specified status code.
public void checkLink (String lib) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to dynamic link the library code specified by the string argument file.
public void checkListen (int port) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to wait for a connection request on the specified local port number.
public void checkMemberAccess (Class<Object> clazz, int which) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to access members.
public void checkMulticast (InetAddress maddr) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.
@Deprecated
public void checkMulticast (InetAddress maddr, byte ttl) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.
public void checkPackageAccess (String pkg) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to access the package specified by the argument.
public void checkPackageDefinition (String pkg) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to define classes in the package specified by the argument.
public void checkPermission (Permission perm) [Inherited From SecurityManager]
  Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.
public void checkPermission (Permission perm, Object context) [Inherited From SecurityManager]
  Throws a SecurityException if the specified security context is denied access to the resource specified by the given permission.
public void checkPrintJobAccess () [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to initiate a print job request.
public void checkPropertiesAccess () [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to access or modify the system properties.
public void checkPropertyAccess (String key) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to access the system property with the specified key name.
public void checkRead (FileDescriptor fd) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to read from the specified file descriptor.
public void checkRead (String file) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to read the file specified by the string argument.
public void checkRead (String file, Object context) [Inherited From SecurityManager]
  Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument.
public void checkSecurityAccess (String target) [Inherited From SecurityManager]
  Determines whether the permission with the specified permission target name should be granted or denied.
public void checkSetFactory () [Inherited From SecurityManager]
  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.
public void checkSystemClipboardAccess () [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to access the system clipboard.
public boolean checkTopLevelWindow (Object window) [Inherited From SecurityManager]
  Returns false if the calling thread is not trusted to bring up the top-level window indicated by the window argument.
public void checkWrite (FileDescriptor fd) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to write to the specified file descriptor.
public void checkWrite (String file) [Inherited From SecurityManager]
  Throws a SecurityException if the calling thread is not allowed to write to the file specified by the string argument.
@Deprecated
protectednative int classDepth (String name) [Inherited From SecurityManager]
  Returns the stack depth of the specified class.
@Deprecated
protected int classLoaderDepth () [Inherited From SecurityManager]
  Returns the stack depth of the most recently executing method from a class defined using a non-system class loader.
@Deprecated
protected ClassLoader currentClassLoader () [Inherited From SecurityManager]
  Returns the class loader of the most recently executing method from a class defined using a non-system class loader.
@Deprecated
protected Class<Object> currentLoadedClass () [Inherited From SecurityManager]
  Returns the class of the most recently executing method from a class defined using a non-system class loader.
protectednative Class getClassContext () [Inherited From SecurityManager]
  Returns the current execution stack as an array of classes.
@Deprecated
public boolean getInCheck () [Inherited From SecurityManager]
  Tests if there is a security check in progress.
public Object getSecurityContext () [Inherited From SecurityManager]
  Creates an object that encapsulates the current execution environment.
public ThreadGroup getThreadGroup () [Inherited From SecurityManager]
  Returns the thread group into which to instantiate any new thread being created at the time this is being called.
@Deprecated
protected boolean inClass (String name) [Inherited From SecurityManager]
  Tests if a method from a class with the specified name is on the execution stack.
@Deprecated
protected boolean inClassLoader () [Inherited From SecurityManager]
  Basically, tests if a method from a class defined using a class loader is on the execution stack.
Fields
Hide/Show inherited fields
@Deprecated
protected boolean inCheck [Inherited From SecurityManager]
This field is true if there is a security check in progress; false otherwise.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar