Compartilhar via


IKey.WrapKeyAsync Método

Definição

Encapsula uma chave simétrica usando o algoritmo especificado.

public System.Threading.Tasks.Task<byte[]> WrapKeyAsync(Microsoft.Azure.Management.KeyVault.Fluent.Models.JsonWebKeyEncryptionAlgorithm algorithm, byte[] key, System.Threading.CancellationToken cancellationToken = default);
abstract member WrapKeyAsync : Microsoft.Azure.Management.KeyVault.Fluent.Models.JsonWebKeyEncryptionAlgorithm * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Function WrapKeyAsync (algorithm As JsonWebKeyEncryptionAlgorithm, key As Byte(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())

Parâmetros

algorithm
JsonWebKeyEncryptionAlgorithm

O algoritmo de criptografia JWK.

key
Byte[]

A chave simétrica a ser encapsulada.

cancellationToken
CancellationToken

Retornos

Task<Byte[]>

Aplica-se a