e220. managing policy files.txt

来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 21 行

TXT
21
字号
By default, the JDK uses the policy files located in 
    file:${java.home}/lib/security/java.policy
    file:${user.home}/.java.policy

These policy files are specified in the default security file: 
    ${java.home}/lib/security/java.security

The final policy is the union of all granted permissions in all policy files. To specify an additional policy file, you can set the java.security.policy system property at the command line: 
    > java -Djava.security.manager -Djava.security.policy=someURL MyApp
    or
    > appletviewer -J-Djava.security.policy=someURL HTMLfile


To ignore the policies in the java.security file, and only use the specified policy, use `==' instead of `=': 
    > java -Djava.security.manager -Djava.security.policy==someURL MyApp


Additional policy files can also be added to the java.security file. For more information on policy files, see 
    http://java.sun.com/j2se/1.4/docs/guide/security/PolicyFiles.html

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?