Certificate.verify

Verifies that this certificate was signed using the private key that corresponds to the specified key. This method uses the signature verification engine supplied by the specified provider. Note that the specified Provider object does not have to be registered in the provider list.

<p> This method was added to version 1.8 of the Java Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method cannot be {@code abstract} and by default throws an {@code UnsupportedOperationException}.

@param key the PublicKey used to carry out the verification. @param sigProvider the signature provider.

@exception NoSuchAlgorithmException on unsupported signature algorithms. @exception InvalidKeyException on incorrect key. @exception SignatureException on signature errors. @exception CertificateException on encoding errors. @exception UnsupportedOperationException if the method is not supported @since 1.8

  1. void verify(PublicKey key)
  2. void verify(PublicKey key, string sigProvider)
  3. void verify(PublicKey key, Provider sigProvider)
    class Certificate

Meta