你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IKeyVaultClient.SignWithHttpMessagesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的键从摘要创建签名。
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.KeyOperationResult>> SignWithHttpMessagesAsync(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 SignWithHttpMessagesAsync : 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 SignWithHttpMessagesAsync (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
签名/验证算法标识符。 有关可能的算法类型的详细信息,请参阅 JsonWebKeySignatureAlgorithm。 可能的值包括:“PS256”、“PS384”、“PS512”、“RS256”、“RS384”、“RS512”、“RSNULL”、“ES256”、“ES384”、“ES512”、“ECDSA256”
- value
- Byte[]
- customHeaders
- Dictionary<String,List<String>>
将添加到请求的标头。
- cancellationToken
- CancellationToken
取消标记。
返回
注解
SIGN 操作适用于存储在 Azure 密钥保管库 中的非对称密钥,因为此操作使用密钥的专用部分。 此操作需要密钥/符号权限。