The JavaTM Tutorial

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

Trail: Security in JDK 1.1
Lesson: Using the Security API to Generate Public and Private Keys

## Step 6: Run the Program

> Now run the `testSig` application with the Java interpreter. Remember, you need to specify the name of a file to be signed. You can download and use this sample file named data or any other file you like. The file will not be modified. It will be read so that a signature can be generated for it.

> You should see the following output:

> >     signature verifies: true

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

Copyright 1995-2001 Sun Microsystems, Inc. All rights reserved.