你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IKeyVaultClient.DecryptWithHttpMessagesAsync 方法

定义

解密单个加密数据块。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.KeyOperationResult>> DecryptWithHttpMessagesAsync (string vaultBaseUrl, string keyName, string keyVersion, string algorithm, byte[] value, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DecryptWithHttpMessagesAsync : string * string * string * string * byte[] * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.KeyOperationResult>>
Public Function DecryptWithHttpMessagesAsync (vaultBaseUrl As String, keyName As String, keyVersion As String, algorithm As String, value As Byte(), Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of KeyOperationResult))

参数

vaultBaseUrl
String

保管库名称,例如 https://myvault.vault.azure.net

keyName
String

键的名称。

keyVersion
String

密钥的版本。

algorithm
String

算法标识符。 可能的值包括:“RSA-OAEP”、“RSA-OAEP-256”、“RSA1_5”

value
Byte[]
customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

注解

DECRYPT 操作使用目标加密密钥和指定的算法来解密具有正确格式的密码文本块。 此操作与 ENCRYPT 操作相反;只能解密单个数据块,该数据块的大小取决于要使用的目标密钥和算法。 DECRYPT 操作使用密钥的专用部分,因此适用于 Azure 密钥保管库中存储的非对称和对称密钥。 此操作需要密钥/解密权限。

适用于