X509Certificate.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.

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 is not {@code abstract} and it provides a default implementation.

@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

Meta