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)
Syntax
public Task<bool> VerifyAsync(
string keyIdentifier,
string algorithm,
byte[] digest,
byte[] signature,
CancellationToken cancellationToken = null
)
public:
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)
Parameters
keyIdentifier
Type: System.StringThe global key identifier of the key used for signing.
algorithm
Type: System.StringThe signing/verification algorithm. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm.
digest
Type: System.Byte[]The digest used for signing.
signature
Type: System.Byte[]The signature to be verified.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
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