KeyVaultClient.WrapKeyAsync Method (String, String, String, String, Byte[], CancellationToken)
Asynchronously wraps a symmetric key using the specified key.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<KeyOperationResult> WrapKeyAsync(
string vault,
string keyName,
string keyVersion,
string algorithm,
byte[] key,
CancellationToken cancellationToken = null
)
public:
Task<KeyOperationResult^>^ WrapKeyAsync(
String^ vault,
String^ keyName,
String^ keyVersion,
String^ algorithm,
array<unsigned char>^ key,
CancellationToken cancellationToken = null
)
member WrapKeyAsync :
vault:string *
keyName:string *
keyVersion:string *
algorithm:string *
key:byte[] *
cancellationToken:CancellationToken = null -> Task<KeyOperationResult>
Public Function WrapKeyAsync (
vault As String,
keyName As String,
keyVersion As String,
algorithm As String,
key 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.
key
Type: System.Byte[]The symmetric key.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<KeyOperationResult>
The wrapped symmetric key.
See Also
WrapKeyAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top