1. /*
  2. * @(#)RMISecurityManager.java 1.27 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi;
  11. import java.security.*;
  12. /**
  13. * <code>RMISecurityManager</code> provides an example security manager for
  14. * use by RMI applications that use downloaded code. RMI's class loader will
  15. * not download any classes from remote locations if no security manager has
  16. * been set. <code>RMISecurityManager</code> does not apply to applets, which
  17. * run under the protection of their browser's security manager.
  18. *
  19. * <p>To use the <code>RMISecurityManager</code> in your application , add
  20. * the following statement to your code (it needs to be executed before RMI
  21. * can download code from remote hosts, so it most likely needs to appear
  22. * in the <code>main</code> of your application):
  23. *
  24. * <pre>
  25. * System.setSecurityManager(new RMISecurityManager());
  26. * </pre>
  27. *
  28. * @version 1.27, 02/02/00
  29. * @author Roger Riggs
  30. * @author Peter Jones
  31. * @since JDK1.1
  32. */
  33. public class RMISecurityManager extends SecurityManager {
  34. /**
  35. * Constructs a new <code>RMISecurityManager</code>.
  36. * @since JDK1.1
  37. */
  38. public RMISecurityManager() {
  39. }
  40. }