Java.Security.Signature.InitVerify Method
Initializes this Signature instance for signature verification, using the certificate of the identity whose signature is going to be verified.

Syntax

[Android.Runtime.Register("initVerify", "(Ljava/security/cert/Certificate;)V", "")]
public void InitVerify (Java.Security.Cert.Certificate certificate)

Parameters

certificate
the certificate used to verify a signature.

Exceptions

TypeReason
Java.Security.InvalidKeyExceptionif the publicKey in the certificate is not valid or not to be used for signing.

Remarks

Initializes this Signature instance for signature verification, using the certificate of the identity whose signature is going to be verified.

If the given certificate is an instance of Java.Security.Cert.X509Certificate and has a key usage parameter that indicates, that this certificate is not to be used for signing, an InvalidKeyException is thrown.

[Android Documentation]

Requirements

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