public class SQLServerColumnEncryptionJavaKeyStoreProvider extends SQLServerColumnEncryptionKeyStoreProvider
| Constructor | Description |
|---|---|
SQLServerColumnEncryptionJavaKeyStoreProvider(java.lang.String keyStoreLocation,
char[] keyStoreSecret) |
Constructs a SQLServerColumnEncryptionJavaKeyStoreProvider for the Java Key Store.
|
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
decryptColumnEncryptionKey(java.lang.String masterKeyPath,
java.lang.String encryptionAlgorithm,
byte[] encryptedColumnEncryptionKey) |
Decrypts the specified encrypted value of a column encryption key.
|
byte[] |
encryptColumnEncryptionKey(java.lang.String masterKeyPath,
java.lang.String encryptionAlgorithm,
byte[] plainTextColumnEncryptionKey) |
Encrypts a column encryption key using the column master key with the specified key path and using the specified
algorithm.
|
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.
|
public SQLServerColumnEncryptionJavaKeyStoreProvider(java.lang.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(java.lang.String name)
SQLServerColumnEncryptionKeyStoreProvidersetName in class SQLServerColumnEncryptionKeyStoreProvidername - value to be set for the key store provider.public java.lang.String getName()
SQLServerColumnEncryptionKeyStoreProvidergetName in class SQLServerColumnEncryptionKeyStoreProviderpublic byte[] decryptColumnEncryptionKey(java.lang.String masterKeyPath,
java.lang.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(java.lang.String masterKeyPath,
java.lang.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.