public class SQLServerColumnEncryptionJavaKeyStoreProvider extends SQLServerColumnEncryptionKeyStoreProvider
| Constructor and Description |
|---|
SQLServerColumnEncryptionJavaKeyStoreProvider(String keyStoreLocation,
char[] keyStoreSecret)
Key store provider for the Java Key Store.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptColumnEncryptionKey(String masterKeyPath,
String encryptionAlgorithm,
byte[] encryptedColumnEncryptionKey)
Base class method for decrypting the specified encrypted value of a column encryption key.
|
byte[] |
encryptColumnEncryptionKey(String masterKeyPath,
String encryptionAlgorithm,
byte[] plainTextColumnEncryptionKey)
Base class method for encrypting a column encryption key using the column master key with the specified key path and using the specified
algorithm.
|
String |
getName()
Retrieves the name of this key store provider.
|
void |
setName(String name)
Sets the name of this key store provider.
|
public SQLServerColumnEncryptionJavaKeyStoreProvider(String keyStoreLocation, char[] keyStoreSecret) throws SQLServerException
keyStoreLocation - specifies the location of the keystorekeyStoreSecret - specifies the secret used for keystoreSQLServerException - 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
SQLServerColumnEncryptionKeyStoreProviderdecryptColumnEncryptionKey in class SQLServerColumnEncryptionKeyStoreProvidermasterKeyPath - The column master key path.encryptionAlgorithm - the specific encryption algorithm.encryptedColumnEncryptionKey - the encrypted column encryption keySQLServerException - when an error occurs while decrypting the CEKpublic byte[] encryptColumnEncryptionKey(String masterKeyPath, String encryptionAlgorithm, byte[] plainTextColumnEncryptionKey) throws SQLServerException
SQLServerColumnEncryptionKeyStoreProviderencryptColumnEncryptionKey in class SQLServerColumnEncryptionKeyStoreProvidermasterKeyPath - The column master key path.encryptionAlgorithm - the specific encryption algorithm.plainTextColumnEncryptionKey - column encryption key to be encrypted.SQLServerException - when an error occurs while encrypting the CEKCopyright © 2018 Microsoft Corporation. All rights reserved.