SignedObject.Verify(IPublicKey, Signature) Method

Definition

Verifies that the signature in this SignedObject is the valid signature for the object stored inside, with the given verification key, using the designated verification engine.

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/security/Signature;)Z", "")]
public bool Verify (Java.Security.IPublicKey? verificationKey, Java.Security.Signature? verificationEngine);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/security/Signature;)Z", "")>]
member this.Verify : Java.Security.IPublicKey * Java.Security.Signature -> bool

Parameters

verificationKey
IPublicKey

the public key for verification.

verificationEngine
Signature

the signature verification engine.

Returns

true if the signature is valid, false otherwise

Attributes

Exceptions

if the public key is invalid.

if signature verification failed.

Remarks

Verifies that the signature in this SignedObject is the valid signature for the object stored inside, with the given verification key, using the designated verification engine.

Java documentation for java.security.SignedObject.verify(java.security.PublicKey, java.security.Signature).

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