Java 教程是为 JDK 8 编写的。本页中描述的示例和实践未利用在后续版本中引入的改进。
Here
is the complete source code for the VerSig.java
program, with some comments added.
Compile and run the program. Remember, you need to specify three arguments on the command line:
Since you will be testing the output of the GenSig
program, the file names you should use are
suepk
sig
data
Here's a sample run; the bold indicates what you type.
%java VerSig suepk sig data signature verifies: true