public class SQLServerColumnEncryptionAzureKeyVaultProvider extends SQLServerColumnEncryptionKeyStoreProvider
Constructor | Description |
---|---|
SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback) |
Constructs a SQLServerColumnEncryptionAzureKeyVaultProvider with a callback function to authenticate to AAD.
|
SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback,
java.util.concurrent.ExecutorService executorService) |
Deprecated.
|
SQLServerColumnEncryptionAzureKeyVaultProvider(java.lang.String clientId,
java.lang.String clientKey) |
Constructs a SQLServerColumnEncryptionAzureKeyVaultProvider with a client id and client key to authenticate to
AAD.
|
Modifier and Type | Method | Description |
---|---|---|
byte[] |
decryptColumnEncryptionKey(java.lang.String masterKeyPath,
java.lang.String encryptionAlgorithm,
byte[] encryptedColumnEncryptionKey) |
Decryptes an encrypted CEK with RSA encryption algorithm using the asymmetric key specified by the key path
|
byte[] |
encryptColumnEncryptionKey(java.lang.String masterKeyPath,
java.lang.String encryptionAlgorithm,
byte[] columnEncryptionKey) |
Encrypts CEK with RSA encryption algorithm using the asymmetric key specified by the key path.
|
java.lang.String |
getName() |
Returns the name of this key store provider.
|
void |
setName(java.lang.String name) |
Sets the name of this key store provider.
|
@Deprecated public SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback, java.util.concurrent.ExecutorService executorService) throws SQLServerException
authenticationCallback
- - Callback function used for authenticating to AAD.executorService
- - The ExecutorService, previously used to create the keyVaultClient, but not in use anymore. - This
parameter can be passed as 'null'SQLServerException
- when an error occurspublic SQLServerColumnEncryptionAzureKeyVaultProvider(SQLServerKeyVaultAuthenticationCallback authenticationCallback) throws SQLServerException
authenticationCallback
- - Callback function used for authenticating to AAD.SQLServerException
- when an error occurspublic SQLServerColumnEncryptionAzureKeyVaultProvider(java.lang.String clientId, java.lang.String clientKey) throws SQLServerException
clientId
- Identifier of the client requesting the token.clientKey
- Key of the client requesting the token.SQLServerException
- when an error occurspublic void setName(java.lang.String name)
SQLServerColumnEncryptionKeyStoreProvider
setName
in class SQLServerColumnEncryptionKeyStoreProvider
name
- value to be set for the key store provider.public java.lang.String getName()
SQLServerColumnEncryptionKeyStoreProvider
getName
in class SQLServerColumnEncryptionKeyStoreProvider
public byte[] decryptColumnEncryptionKey(java.lang.String masterKeyPath, java.lang.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
- when an error occurs while decrypting the CEKpublic byte[] encryptColumnEncryptionKey(java.lang.String masterKeyPath, java.lang.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
- when an error occurs while encrypting the CEKCopyright © 2018 Microsoft Corporation. All rights reserved.