SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKeyAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
异步使用密钥路径指定的非对称密钥,并使用 RSA 加密算法加密 CEK。
public override System.Threading.Tasks.Task<byte[]> EncryptColumnEncryptionKeyAsync(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey, System.Threading.CancellationToken cancellationToken = default);
override this.EncryptColumnEncryptionKeyAsync : string * string * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Overrides Function EncryptColumnEncryptionKeyAsync (masterKeyPath As String, encryptionAlgorithm As String, columnEncryptionKey As Byte(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
参数
- masterKeyPath
- String
Azure 密钥保管库中非对称密钥的完整路径
- encryptionAlgorithm
- String
非对称密钥加密算法
- columnEncryptionKey
- Byte[]
纯文本列加密密钥。
- cancellationToken
- CancellationToken
用于请求取消操作的令牌
返回
加密列加密密钥
注解
参数验证失败通过返回的任务报告,而不是同步引发。