KeyVaultClient.UnwrapKeyAsync Method (String, String, Byte[], CancellationToken)
Asynchronously unwraps a symmetric key using the specified key in the vault that has initially been used for wrapping the key.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<KeyOperationResult> UnwrapKeyAsync(
string keyIdentifier,
string algorithm,
byte[] wrappedKey,
CancellationToken cancellationToken = null
)
public:
Task<KeyOperationResult^>^ UnwrapKeyAsync(
String^ keyIdentifier,
String^ algorithm,
array<unsigned char>^ wrappedKey,
CancellationToken cancellationToken = null
)
member UnwrapKeyAsync :
keyIdentifier:string *
algorithm:string *
wrappedKey:byte[] *
cancellationToken:CancellationToken = null -> Task<KeyOperationResult>
Public Function UnwrapKeyAsync (
keyIdentifier As String,
algorithm As String,
wrappedKey As Byte(),
cancellationToken As CancellationToken
) As Task(Of KeyOperationResult)
Parameters
keyIdentifier
Type: System.StringThe global key identifier of the wrapping/unwrapping key.
algorithm
Type: System.StringThe unwrap algorithm. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm.
wrappedKey
Type: System.Byte[]The wrapped symmetric key.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<KeyOperationResult>
The unwrapped symmetric key.
See Also
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top