The JavaTM Tutorial

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form

Trail: Security in Java 2 SDK 1.2
Lesson: Signing Code and Granting It Permissions

## Steps for the Code Receiver

> 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.

> 1. Observe the Restricted Application

> 2. Import the Certificate as a Trusted Certificate, using the `keytool -import` command, and give it the alias `susan`.

> 3. Set Up a Policy File to Grant the Required Permission to permit classes signed by `susan` to read the specified file.

> 4. See the Policy File Effects, that is, see how the application can now read the file.

> This figure has been reduced to fit on the page.
> Click the image to view it at its natural size.

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form