∟JcaVerify.java - Signature Verification Sample Program
This section provides tutorial example on how to write a digital signature verification sample program to verify any input data and its digital signature with a given public key.
The following program is a standalone program that reads in an input file, a signature file
and a public key file, and verifies that if the signature file matches the input file
based on the specified digital signature algorithm.
Here is result of my first test to verify a signature generated with the DSA algorithm
and the SHA1withDSA algorithm. See the previous section for more information.