CONTENTS | PREV | NEXT Java Remote Method Invocation

5.5 The RMISecurityManager Class

package java.rmi;

public class RMISecurityManager extends java.lang.SecurityManager {

	public RMISecurityManager();
	public synchronized void checkPackageAccess(String pkg)
		throws RMISecurityException;

The RMISecurityManager provides the same security features as the java.lang.SecurityManager, but overrides the checkPackageAcess method.

In RMI applications, if no security manager has been set, stubs and classes can only be loaded from the local classpath. This ensures that the application is protected from code that is downloaded as a result of remote method invocations.

Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.