Class EncryptionTest

java.lang.Object
org.apache.hadoop.hbase.util.EncryptionTest

@LimitedPrivate("Tools") public class EncryptionTest extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • testKeyProvider

      public static void testKeyProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
      Check that the configured key provider can be loaded and initialized, or throw an exception.
      Throws:
      IOException
    • testCipherProvider

      public static void testCipherProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
      Check that the configured cipher provider can be loaded and initialized, or throw an exception.
      Throws:
      IOException
    • testEncryption

      public static void testEncryption(org.apache.hadoop.conf.Configuration conf, String cipher, byte[] key) throws IOException
      Check that the specified cipher can be loaded and initialized, or throw an exception. Verifies key and cipher provider configuration as a prerequisite for cipher verification. Also verifies if encryption is enabled globally.
      Parameters:
      conf - HBase configuration
      cipher - chiper algorith to use for the column family
      key - encryption key
      Throws:
      IOException - in case of encryption configuration error