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)
SQLServerColumnEncryptionKeyStoreProvider
setName
in class SQLServerColumnEncryptionKeyStoreProvider
name
- value to be set for the key store provider.public String getName()
SQLServerColumnEncryptionKeyStoreProvider
getName
in class SQLServerColumnEncryptionKeyStoreProvider
public byte[] decryptColumnEncryptionKey(String masterKeyPath, String encryptionAlgorithm, byte[] encryptedColumnEncryptionKey) throws SQLServerException
SQLServerColumnEncryptionKeyStoreProvider
decryptColumnEncryptionKey
in class SQLServerColumnEncryptionKeyStoreProvider
masterKeyPath
- 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
SQLServerColumnEncryptionKeyStoreProvider
encryptColumnEncryptionKey
in class SQLServerColumnEncryptionKeyStoreProvider
masterKeyPath
- 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 © 2017 Microsoft Corporation. All rights reserved.