public final class SQLServerColumnEncryptionCertificateStoreProvider extends SQLServerColumnEncryptionKeyStoreProvider
Constructor | Description |
---|---|
SQLServerColumnEncryptionCertificateStoreProvider() |
Constructs a SQLServerColumnEncryptionCertificateStoreProvider.
|
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 SQLServerColumnEncryptionCertificateStoreProvider()
public 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[] encryptColumnEncryptionKey(java.lang.String masterKeyPath, java.lang.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 CEKpublic byte[] decryptColumnEncryptionKey(java.lang.String masterKeyPath, java.lang.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 CEKCopyright © 2018 Microsoft Corporation. All rights reserved.