Signing Code and Granting It Permissions [Tools] |
Next, you will use the Policy Tool to create a policy file named
raypolicy
and in it grant a permission to code from a signed JAR file.The JAR file must have been signed using the private key corresponding to the public key imported into Ray's keystore (
raystore
) in the previous step. The certificate containing the public key is aliased by "susan" in the keystore. The permission we will grant such code is permission to read any file in theC:\TestData\
directory.The steps are:
Signing Code and Granting It Permissions [Tools] |