Certificate.Verify Method

Definition

Overloads

Verify(IPublicKey)

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

Verify(IPublicKey, String)

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

Verify(IPublicKey)

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

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;)V", "GetVerify_Ljava_security_PublicKey_Handler")]
public abstract void Verify (Java.Security.IPublicKey? key);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;)V", "GetVerify_Ljava_security_PublicKey_Handler")>]
abstract member Verify : Java.Security.IPublicKey -> unit

Parameters

key
IPublicKey

the PublicKey used to carry out the verification.

Attributes

Exceptions

if encoding errors are detected

if an unsupported algorithm is detected

if an invalid key is detected

if there is no default provider

if signature errors are detected

Remarks

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

Java documentation for javax.security.cert.Certificate.verify(java.security.PublicKey).

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

Verify(IPublicKey, String)

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/lang/String;)V", "GetVerify_Ljava_security_PublicKey_Ljava_lang_String_Handler")]
public abstract void Verify (Java.Security.IPublicKey? key, string? sigProvider);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/lang/String;)V", "GetVerify_Ljava_security_PublicKey_Ljava_lang_String_Handler")>]
abstract member Verify : Java.Security.IPublicKey * string -> unit

Parameters

key
IPublicKey

the PublicKey used to carry out the verification.

sigProvider
String

the name of the signature provider.

Attributes

Exceptions

if encoding errors are detected

if an unsupported algorithm is detected

if an invalid key is detected

if the specified provider does not exists.

if signature errors are detected

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.

Java documentation for javax.security.cert.Certificate.verify(java.security.PublicKey, java.lang.String).

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