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
- SQLServerException
public void setName(String name)
setName
in class SQLServerColumnEncryptionKeyStoreProvider
public String getName()
getName
in class SQLServerColumnEncryptionKeyStoreProvider
public byte[] decryptColumnEncryptionKey(String masterKeyPath, String encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) throws SQLServerException
decryptColumnEncryptionKey
in class SQLServerColumnEncryptionKeyStoreProvider
masterKeyPath
- - Complete path of an asymmetric key in AKVencryptionAlgorithm
- - Asymmetric Key Encryption AlgorithmencryptedColumnEncryptionKey
- - Encrypted Column Encryption KeySQLServerException
public byte[] encryptColumnEncryptionKey(String masterKeyPath, String encryptionAlgorithm, byte[] columnEncryptionKey) throws SQLServerException
encryptColumnEncryptionKey
in class SQLServerColumnEncryptionKeyStoreProvider
masterKeyPath
- - Complete path of an asymmetric key in AKVencryptionAlgorithm
- - Asymmetric Key Encryption AlgorithmcolumnEncryptionKey
- - Plain text column encryption keySQLServerException
Copyright © 2016. All rights reserved.