Class SQLServerColumnEncryptionJavaKeyStoreProvider


  • public class SQLServerColumnEncryptionJavaKeyStoreProvider
    extends SQLServerColumnEncryptionKeyStoreProvider
    Provides the implementation of the key store provider for Java Key Store. This class enables using certificates stored in the Java keystore as column master keys.
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLServerColumnEncryptionJavaKeyStoreProvider​(java.lang.String keyStoreLocation, char[] keyStoreSecret)
      Constructs a SQLServerColumnEncryptionJavaKeyStoreProvider for the Java Key Store.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLServerColumnEncryptionJavaKeyStoreProvider

        public SQLServerColumnEncryptionJavaKeyStoreProvider​(java.lang.String keyStoreLocation,
                                                             char[] keyStoreSecret)
                                                      throws SQLServerException
        Constructs a SQLServerColumnEncryptionJavaKeyStoreProvider for the Java Key Store.
        Parameters:
        keyStoreLocation - specifies the location of the keystore
        keyStoreSecret - specifies the secret used for keystore
        Throws:
        SQLServerException - when an error occurs