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
Complete path of an asymmetric key in Azure Key Vault
- encryptionAlgorithm
- String
非對稱金鑰加密演算法
- columnEncryptionKey
- Byte[]
明文欄位加密金鑰。
- cancellationToken
- CancellationToken
用於請求取消操作的令牌
傳回
加密欄位加密金鑰
備註
參數驗證失敗會透過回傳任務報告,而非同步拋接。