語言

SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKeyAsync 方法

定義

非同步使用金鑰路徑指定的非對稱金鑰,並以 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

Complete path of an asymmetric key in Azure Key Vault

encryptionAlgorithm
String

非對稱金鑰加密演算法

columnEncryptionKey
Byte[]

明文欄位加密金鑰。

cancellationToken
CancellationToken

用於請求取消操作的令牌

傳回

Task<Byte[]>

加密欄位加密金鑰

備註

參數驗證失敗會透過回傳任務報告,而非同步拋接。

適用於