KeyVaultClient.VerifyAsync Method (String, String, Byte[], Byte[], CancellationToken)


Asynchronously verifies a signature using the specified key.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)


public Task<bool> VerifyAsync(
    string keyIdentifier,
    string algorithm,
    byte[] digest,
    byte[] signature,
    CancellationToken cancellationToken = null
Task<bool>^ VerifyAsync(
    String^ keyIdentifier,
    String^ algorithm,
    array<unsigned char>^ digest,
    array<unsigned char>^ signature,
    CancellationToken cancellationToken = null
member VerifyAsync : 
        keyIdentifier:string *
        algorithm:string *
        digest:byte[] *
        signature:byte[] *
        cancellationToken:CancellationToken = null -> Task<bool>
Public Function VerifyAsync (
    keyIdentifier As String,
    algorithm As String,
    digest As Byte(),
    signature As Byte(),
    cancellationToken As CancellationToken
) As Task(Of Boolean)


  • keyIdentifier
    Type: System.String

    The global key identifier of the key used for signing.

  • digest
    Type: System.Byte[]

    The digest used for signing.

  • signature
    Type: System.Byte[]

    The signature to be verified.

Return Value

Type: System.Threading.Tasks.Task<Boolean>

true if the signature is verified; otherwise, false.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top