Verifies the passed-in signature with the specified key, using the
underlying signature or MAC algorithm.
Returns:
true
if the signature verified successfully,
false
if not
Parameters:
-
key - the verification key
-
si - the DOMSignedInfo
-
signature - the signature bytes to be verified
-
context - the XMLValidateContext
Throws:
-
NullPointerException - if
key
,
si
or
signature
are
null
-
InvalidKeyException - if the key is improperly encoded, of
the wrong type, or parameters are missing, etc
-
SignatureException - if an unexpected error occurs, such
as the passed in signature is improperly encoded
-
XMLSignatureException - if an unexpected error occurs