1. /*
  2. * @(#)RMISecurityManager.java 1.31 03/12/19
  3. *
  4. * Copyright 2004 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. * A subclass of {@link SecurityManager} used by RMI applications that use
  11. * downloaded code. RMI's class loader will not download any classes from
  12. * remote locations if no security manager has been set.
  13. * <code>RMISecurityManager</code> does not apply to applets, which run
  14. * under the protection of their browser's security manager.
  15. *
  16. * <code>RMISecurityManager</code> implements a policy that
  17. * is no different than the policy implemented by {@link SecurityManager}.
  18. * Therefore an RMI application should use the <code>SecurityManager</code>
  19. * class or another application-specific <code>SecurityManager</code>
  20. * implementation instead of this class.
  21. *
  22. * <p>To use a <code>SecurityManager</code> in your application, add
  23. * the following statement to your code (it needs to be executed before RMI
  24. * can download code from remote hosts, so it most likely needs to appear
  25. * in the <code>main</code> method of your application):
  26. *
  27. * <pre>
  28. * System.setSecurityManager(new SecurityManager());
  29. * </pre>
  30. *
  31. * @version 1.31, 12/19/03
  32. * @author Roger Riggs
  33. * @author Peter Jones
  34. * @since JDK1.1
  35. **/
  36. public class RMISecurityManager extends SecurityManager {
  37. /**
  38. * Constructs a new <code>RMISecurityManager</code>.
  39. * @since JDK1.1
  40. */
  41. public RMISecurityManager() {
  42. }
  43. }