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() |
void |
setName(String name) |
public SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback, ExecutorService executorService) throws SQLServerException
authenticationCallback - - Callback function used for authenticating to AAD.executorService - SQLServerExceptionpublic void setName(String name)
setName in class SQLServerColumnEncryptionKeyStoreProviderpublic String getName()
getName 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 KeySQLServerExceptionpublic 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 keySQLServerExceptionCopyright © 2016. All rights reserved.