|
|
Signing Code and Granting It Permissions |
Now act as Ray, who receives the signed JAR file and the certificate file from Susan. You will perform the following steps, as shown in the figure.
- Observe the Restricted Application
- Import the Certificate as a Trusted Certificate, using the
keytool -importcommand, and give it the aliassusan.
- Set Up a Policy File to Grant the Required Permission to permit classes signed by
susanto read the specified file.
- See the Policy File Effects, that is, see how the application can now read the file.
|
|
Signing Code and Granting It Permissions |