CONTENTS | PREV | NEXT | Java Remote Method Invocation |
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.