| This Signature class is used to provide applications
the functionality
of a digital signature algorithm. Digital signatures are used for
authentication and integrity assurance of digital data.
The signature algorithm can be, among others, the NIST standard
DSA, using DSA and SHA-1. The DSA algorithm using the
SHA-1 message digest algorithm can be specified as SHA1withDSA.
In the case of RSA, there are multiple choices for the message digest
algorithm, so the signing algorithm could be specified as, for example,
MD2withRSA, MD5withRSA, or SHA1withRSA.
The algorithm name must be specified, as there is no default.
When an algorithm name is specified, the system will
determine if there is an implementation of the algorithm requested
available in the environment, and if there is more than one, if
there is a preferred one.
A Signature object can be used to generate and
verify digital signatures.
There are three phases to the use of a Signature
object for verifying a signature:
- Initialization, with a public key, which initializes the
signature for verification
- Updating
Depending on the type of initialization, this will update the
bytes to be verified.
- Verifying a signature on all updated bytes.
version: 1.91, 01/23/03 |