The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
For this lesson you will grant all code in JAR files signed by the alias susan read access to all files in the C:\TestData\
directory. You need to
The keystore is the one named exampleraystore
created in the Import the Certificate as a Trusted Certificate step.
To specify the keystore, choose the Change Keystore command in the Edit menu of the main Policy Tool window. This brings up a dialog box in which you can specify the keystore URL and the keystore type.
To specify the keystore named exampleraystore
in the Test
directory on the C:
drive, type the following file
URL into the text box labeled New KeyStore URL
file:/C:/Test/exampleraystore
You can leave the text box labeled New KeyStore Type blank if the keystore type is the default one, as specified in the security properties file. Your keystore will be the default type, so leave the text box blank.
When you are done specifying the keystore URL, choose OK. The text box labeled Keystore is now filled in with the URL.
Next, you need to specify the new policy entry.