Java Platform 1.2
Beta 4

Class java.rmi.RMISecurityManager

java.lang.Object
  |
  +--java.lang.SecurityManager
        |
        +--java.rmi.RMISecurityManager

public class RMISecurityManager
extends SecurityManager
RMISecurityManager provides a default security manager for use by RMI applications that need one because they use downloaded code. RMI's class loader will not download any classes if no security manager has been set. RMISecurityManager does not apply to applets, which run under the protection of their browser's security manager.

To set the RMISecurityManager, add the following to an application's main() method:

 System.setSecurityManager(new RMISecurityManager());
 

The RMISecurityManager follows the same policy as the java.lang.SecurityManager class for security check methods that it does not override.

Since:
JDK1.1

Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
RMISecurityManager()
          Construct a new RMISecurityManager object.
 
Method Summary
 void checkAccess(Thread t)
          Check access to threads.
 void checkAccess(ThreadGroup g)
          Check access to threads.
 void checkPackageAccess(String pkg)
          Check access to classes of a given package.
 void checkPackageDefinition(String pkg)
          Check access to defining classes of a given package.
 
Methods inherited from class java.lang.SecurityManager
checkAccept , checkAwtEventQueueAccess , checkConnect , checkConnect , checkCreateClassLoader , checkDelete , checkExec , checkExit , checkLink , checkListen , checkMemberAccess , checkMulticast , checkMulticast , checkPermission , checkPermission , checkPrintJobAccess , checkPropertiesAccess , checkPropertyAccess , checkRead , checkRead , checkRead , checkSecurityAccess , checkSetFactory , checkSystemClipboardAccess , checkTopLevelWindow , checkWrite , checkWrite , classDepth , classLoaderDepth , currentClassLoader , currentLoadedClass , getClassContext , getInCheck , getSecurityContext , getThreadGroup , inClass , inClassLoader
 
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

RMISecurityManager

public RMISecurityManager()
Construct a new RMISecurityManager object.
Method Detail

checkAccess

public void checkAccess(Thread t)
Check access to threads.
Overrides:
checkAccess in class SecurityManager

checkAccess

public void checkAccess(ThreadGroup g)
Check access to threads.
Overrides:
checkAccess in class SecurityManager

checkPackageAccess

public void checkPackageAccess(String pkg)
Check access to classes of a given package.
Overrides:
checkPackageAccess in class SecurityManager

checkPackageDefinition

public void checkPackageDefinition(String pkg)
Check access to defining classes of a given package.
Overrides:
checkPackageDefinition in class SecurityManager

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.