Jini 安全配置与 Java 安全工具详解
1. 基于策略文件的基本安全配置
在 Jini 和其他基于 Java 的系统中,可通过定义策略文件并在启动时将其与进程关联来配置安全性,具体命令如下:
java -Djava.security.policy=/usr/policy [rest of command]
其中, -Djava.security.policy 属性指定了要与命令进程关联的策略文件的位置和名称。
1.1 策略文件介绍
权限管理存于文本文件中,默认策略文件名为 java.policy ,位于 user.home 目录。可通过以下程序确定系统位置:
class ListProperties {
public static void main(String args[]) {
System.out.println("sun.boot.class.path = " + System.getProperty("sun.boot.class.path"));
System.out.println("java.class.path = " + System.getProperty("java.class.path"));
System.out.println("user.home = " + System.getProperty("us
超级会员免费看
订阅专栏 解锁全文
1362

被折叠的 条评论
为什么被折叠?



