KeyVaultClientExtensions.DecryptDataAsync Method (KeyVaultClient, JsonWebKey, String, Byte[])
Asynchronously decrypts a single block of encrypted data.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public static Task<KeyOperationResult> DecryptDataAsync(
this KeyVaultClient client,
JsonWebKey key,
string algorithm,
byte[] cipherText
)
public:
[ExtensionAttribute]
static Task<KeyOperationResult^>^ DecryptDataAsync(
KeyVaultClient^ client,
JsonWebKey^ key,
String^ algorithm,
array<unsigned char>^ cipherText
)
static member DecryptDataAsync :
client:KeyVaultClient *
key:JsonWebKey *
algorithm:string *
cipherText:byte[] -> Task<KeyOperationResult>
<ExtensionAttribute>
Public Shared Function DecryptDataAsync (
client As KeyVaultClient,
key As JsonWebKey,
algorithm As String,
cipherText As Byte()
) As Task(Of KeyOperationResult)
Parameters
client
Type: Microsoft.Azure.KeyVault.KeyVaultClientThe application, rather than the server application, that initiates a connection to a server.
key
Type: Microsoft.Azure.KeyVault.WebKey.JsonWebKeyThe web key to use for decryption.
algorithm
Type: System.StringThe encryption algorithm. For more information on possible algorithm types, see JsonWebKeyEncryptionAlgorithm.
cipherText
Type: System.Byte[]The encrypted data.
Return Value
Type: System.Threading.Tasks.Task<KeyOperationResult>
A single block of encrypted data.
See Also
DecryptDataAsync Overload
KeyVaultClientExtensions Class
Microsoft.Azure.KeyVault Namespace
Return to top