Signature.verify
Class Overview | Class Members |
This Package |
All Packages
public final boolean verify( byte signature[] ) throws SignatureException
Parameters
- signature
- the signature bytes to be verified.
Returns
true if the signature was verified, false if not.
Description
Verifies the passed-in signature. The signature bytes are expected
to be X.509-encoded.
A call to this method resets this signature object to the state
it was in when previously initialized for verification via a
call to initVerify(PublicKey). That is, the object is
reset and available to verify another signature from the identity
whose public key was specified in the call to initVerify.
Exceptions
SignatureException
if this signature object is not
initialized properly, or the passed-in signature is improperly
encoded or of the wrong type, etc.