Throws an exception if the certificate was not signed using the
verification key provided. Successfully verifying a certificate
does <em>not</em> indicate that one should trust the entity which
it represents.
@param key the key used for verification.
@param sigProvider the name of the provider.
@exception NoSuchAlgorithmException on unsupported signature
algorithms.
@exception InvalidKeyException on incorrect key.
@exception NoSuchProviderException on incorrect provider.
@exception SignatureException on signature errors.
@exception CertificateException on encoding errors.
Throws an exception if the certificate was not signed using the verification key provided. Successfully verifying a certificate does <em>not</em> indicate that one should trust the entity which it represents.
@param key the key used for verification. @param sigProvider the name of the provider.
@exception NoSuchAlgorithmException on unsupported signature algorithms. @exception InvalidKeyException on incorrect key. @exception NoSuchProviderException on incorrect provider. @exception SignatureException on signature errors. @exception CertificateException on encoding errors.