Previous | Next | Trail Map | Security in JDK 1.2  | Generating and Verifying Signatures

Compile and Run the Program

Here is the complete source code for the VerSig.java program, with some comments added.

Compile and run it. Remember, you need to specify three arguments on the command line:

Since you will be testing the output of the GenSig program, the filenames you should use are:

Here's a sample run, with what you type in bold:

%java VerSig suepk sig data
signature verifies: true


Previous | Next | Trail Map | Security in JDK 1.2  | Generating and Verifying Signatures