Java.Security.Cert.Certificate.Verify Method
Verifies that this certificate was signed with the given public key.

Syntax

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/lang/String;)V", "GetVerify_Ljava_security_PublicKey_Ljava_lang_String_Handler")]
public abstract void Verify (Java.Security.IPublicKey key, string sigProvider)

Parameters

key
PublicKey public key for which verification should be performed.
sigProvider
String the name of the signature provider.

Exceptions

TypeReason
Java.Security.Cert.CertificateExceptionif encoding errors are detected.
Java.Security.NoSuchAlgorithmExceptionif an unsupported algorithm is detected.
Java.Security.InvalidKeyExceptionif an invalid key is detected.
Java.Security.NoSuchProviderExceptionif the specified provider does not exists.
Java.Security.SignatureExceptionif signature errors are detected.

Remarks

Verifies that this certificate was signed with the given public key. It Uses the signature algorithm given by the provider.

[Android Documentation]

Requirements

Namespace: Java.Security.Cert
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1