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