Share via


KeyVaultClientExtensions.WrapKeyAsync Method (KeyVaultClient, JsonWebKey, Byte[], String)

 

Asynchronously wraps a symmetric key using the specified wrapping key and algorithm.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Syntax

public static Task<KeyOperationResult> WrapKeyAsync(
    this KeyVaultClient client,
    JsonWebKey wrappingKey,
    byte[] key,
    string algorithm
)
public:
[ExtensionAttribute]
static Task<KeyOperationResult^>^ WrapKeyAsync(
    KeyVaultClient^ client,
    JsonWebKey^ wrappingKey,
    array<unsigned char>^ key,
    String^ algorithm
)
static member WrapKeyAsync : 
        client:KeyVaultClient *
        wrappingKey:JsonWebKey *
        key:byte[] *
        algorithm:string -> Task<KeyOperationResult>
<ExtensionAttribute>
Public Shared Function WrapKeyAsync (
    client As KeyVaultClient,
    wrappingKey As JsonWebKey,
    key As Byte(),
    algorithm As String
) As Task(Of KeyOperationResult)

Parameters

Return Value

Type: System.Threading.Tasks.Task<KeyOperationResult>

The wrapped key

See Also

WrapKeyAsync Overload
KeyVaultClientExtensions Class
Microsoft.Azure.KeyVault Namespace

Return to top