KeyVaultClientExtensions.SignAsync Method (KeyVaultClient, JsonWebKey, String, Byte[])
Asynchronously creates a signature from a digest using the specified key in the vault.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public static Task<KeyOperationResult> SignAsync(
this KeyVaultClient client,
JsonWebKey key,
string algorithm,
byte[] digest
)
public:
[ExtensionAttribute]
static Task<KeyOperationResult^>^ SignAsync(
KeyVaultClient^ client,
JsonWebKey^ key,
String^ algorithm,
array<unsigned char>^ digest
)
static member SignAsync :
client:KeyVaultClient *
key:JsonWebKey *
algorithm:string *
digest:byte[] -> Task<KeyOperationResult>
<ExtensionAttribute>
Public Shared Function SignAsync (
client As KeyVaultClient,
key As JsonWebKey,
algorithm As String,
digest As Byte()
) As Task(Of KeyOperationResult)
Parameters
client
Type: Microsoft.Azure.KeyVault.KeyVaultClientThe application, rather than the server application, that initiates a connection to a server.
key
Type: Microsoft.Azure.KeyVault.WebKey.JsonWebKeyThe web key of the signing key.
algorithm
Type: System.StringThe signing algorithm. For more information on possible algorithm types, see JsonWebKeyEncryptionAlgorithm.
digest
Type: System.Byte[]The signing digest hash value.
Return Value
Type: System.Threading.Tasks.Task<KeyOperationResult>
The signature to create.
See Also
SignAsync Overload
KeyVaultClientExtensions Class
Microsoft.Azure.KeyVault Namespace
Return to top