SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKeyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously uses the asymmetric key specified by the key path and encrypts a CEK with the RSA encryption algorithm.
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())
Parameters
- masterKeyPath
- String
Complete path of an asymmetric key in Azure Key Vault
- encryptionAlgorithm
- String
Asymmetric Key Encryption Algorithm
- columnEncryptionKey
- Byte[]
The plaintext column encryption key.
- cancellationToken
- CancellationToken
Token used to request cancellation of the operation
Returns
Encrypted column encryption key
Remarks
Argument validation failures are reported through the returned task rather than thrown synchronously.