public class SQLServerColumnEncryptionAzureKeyVaultProvider extends SQLServerColumnEncryptionKeyStoreProvider
| Constructor and Description |
|---|
SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback,
ExecutorService executorService)
Constructor that takes a callback function to authenticate to AAD.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptColumnEncryptionKey(String masterKeyPath,
String encryptionAlgorithm,
byte[] encryptedColumnEncryptionKey)
This function uses the asymmetric key specified by the key path and decrypts an encrypted CEK with RSA encryption algorithm.
|
byte[] |
encryptColumnEncryptionKey(String masterKeyPath,
String encryptionAlgorithm,
byte[] columnEncryptionKey)
This function uses the asymmetric key specified by the key path and encrypts CEK with RSA encryption algorithm.
|
String |
getName()
Retrieves the name of this key store provider.
|
void |
setName(String name)
Sets the name of this key store provider.
|
public SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback, ExecutorService executorService) throws SQLServerException
authenticationCallback - - Callback function used for authenticating to AAD.executorService - - The ExecutorService used to create the keyVaultClientSQLServerException - when an error occurspublic void setName(String name)
SQLServerColumnEncryptionKeyStoreProvidersetName in class SQLServerColumnEncryptionKeyStoreProvidername - value to be set for the key store provider.public String getName()
SQLServerColumnEncryptionKeyStoreProvidergetName in class SQLServerColumnEncryptionKeyStoreProviderpublic byte[] decryptColumnEncryptionKey(String masterKeyPath, String encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) throws SQLServerException
decryptColumnEncryptionKey in class SQLServerColumnEncryptionKeyStoreProvidermasterKeyPath - - Complete path of an asymmetric key in AKVencryptionAlgorithm - - Asymmetric Key Encryption AlgorithmencryptedColumnEncryptionKey - - Encrypted Column Encryption KeySQLServerException - when an error occurs while decrypting the CEKpublic byte[] encryptColumnEncryptionKey(String masterKeyPath, String encryptionAlgorithm, byte[] columnEncryptionKey) throws SQLServerException
encryptColumnEncryptionKey in class SQLServerColumnEncryptionKeyStoreProvidermasterKeyPath - - Complete path of an asymmetric key in AKVencryptionAlgorithm - - Asymmetric Key Encryption AlgorithmcolumnEncryptionKey - - Plain text column encryption keySQLServerException - when an error occurs while encrypting the CEKCopyright © 2017 Microsoft Corporation. All rights reserved.