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

Syntax

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

Parameters

key
public key for which verification should be performed.

Exceptions

TypeReason
Javax.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 there is no default provider
Java.Security.SignatureExceptionif signature errors are detected

Remarks

Verifies that this certificate was signed with the given public key.

[Android Documentation]

Requirements

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