X509Certificate.Verify(IPublicKey, Provider) Method

Definition

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/security/Provider;)V", "GetVerify_Ljava_security_PublicKey_Ljava_security_Provider_Handler", ApiSince=24)]
public override void Verify (Java.Security.IPublicKey? key, Java.Security.Provider? sigProvider);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/security/Provider;)V", "GetVerify_Ljava_security_PublicKey_Ljava_security_Provider_Handler", ApiSince=24)>]
override this.Verify : Java.Security.IPublicKey * Java.Security.Provider -> unit

Parameters

key
IPublicKey

the PublicKey used to carry out the verification.

sigProvider
Provider

the signature provider.

Attributes

Remarks

Verifies that this certificate was signed using the private key that corresponds to the specified public 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 abstract and it provides a default implementation.

Added in 1.8.

Java documentation for java.security.cert.X509Certificate.verify(java.security.PublicKey, java.security.Provider).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to