Previous | Next | Trail Map | Java Security | Using the Security API to Generate and Verify a Signature


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


Previous | Next | Trail Map | Java Security | Using the Security API to Generate and Verify a Signature