📄 rmisecuritymanager.java
字号:
/* * @(#)RMISecurityManager.java 1.28 01/12/03 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package java.rmi;import java.security.*;/** * <code>RMISecurityManager</code> provides an example security manager for * use by RMI applications that use downloaded code. RMI's class loader will * not download any classes from remote locations if no security manager has * been set. <code>RMISecurityManager</code> does not apply to applets, which * run under the protection of their browser's security manager. * * <p>To use the <code>RMISecurityManager</code> in your application , add * the following statement to your code (it needs to be executed before RMI * can download code from remote hosts, so it most likely needs to appear * in the <code>main</code> of your application): * * <pre> * System.setSecurityManager(new RMISecurityManager()); * </pre> * * @version 1.28, 12/03/01 * @author Roger Riggs * @author Peter Jones * @since JDK1.1 */public class RMISecurityManager extends SecurityManager { /** * Constructs a new <code>RMISecurityManager</code>. * @since JDK1.1 */ public RMISecurityManager() { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -