KeyVaultClient.SignAsync Method (String, String, String, String, Byte[], CancellationToken)
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 Task<KeyOperationResult> SignAsync(
string vault,
string keyName,
string keyVersion,
string algorithm,
byte[] digest,
CancellationToken cancellationToken = null
)
public:
Task<KeyOperationResult^>^ SignAsync(
String^ vault,
String^ keyName,
String^ keyVersion,
String^ algorithm,
array<unsigned char>^ digest,
CancellationToken cancellationToken = null
)
member SignAsync :
vault:string *
keyName:string *
keyVersion:string *
algorithm:string *
digest:byte[] *
cancellationToken:CancellationToken = null -> Task<KeyOperationResult>
Public Function SignAsync (
vault As String,
keyName As String,
keyVersion As String,
algorithm As String,
digest As Byte(),
cancellationToken As CancellationToken
) As Task(Of KeyOperationResult)
Parameters
vault
Type: System.StringThe URL of the vault.
keyName
Type: System.StringThe name of the key.
keyVersion
Type: System.StringThe version of the key (optional).
algorithm
Type: System.StringThe signing algorithm. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm.
digest
Type: System.Byte[]The digest value to sign.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<KeyOperationResult>
The signature value.
See Also
SignAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top