|
|
|
|||
|
Add a Policy Entry with a SignedBy AliasTo grant code signed bysusan permission to
read any files in the C:\TestData directory, you
need to create a policy entry granting this permission.
Note that "Code signed by susan"
is an abbreviated way of saying
"Code in a class file contained in a JAR file, where the JAR
file was signed using the private key corresponding to the
public key that appears in a keystore certificate in an entry
aliased by susan."
Choose the Add Policy Entry button in the main Policy Tool window. This brings up the Policy Entry dialog box: ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. susan Leave the CodeBase text box blank, to grant
all code signed by
To add the permission, choose the Add Permission button. This brings up the Permissions dialog box. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. Do the following.
![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. Choose the OK button. The new permission appears in a line in the Policy Entry dialog, as follows. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size.
You are now done specifying this policy entry, so choose the Done button in the Policy Entry dialog. The Policy Tool window now contains a line representing the policy entry, showing the SignedBy value, as shown in the following figure. ![]() This figure has been reduced to fit on the page. Click the image to view it at its natural size. | |||
|