Package org.apache.hadoop.hbase.util
Class EncryptionTest
java.lang.Object
org.apache.hadoop.hbase.util.EncryptionTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtestCipherProvider(org.apache.hadoop.conf.Configuration conf) Check that the configured cipher provider can be loaded and initialized, or throw an exception.static voidtestEncryption(org.apache.hadoop.conf.Configuration conf, String cipher, byte[] key) Check that the specified cipher can be loaded and initialized, or throw an exception.static voidtestKeyProvider(org.apache.hadoop.conf.Configuration conf) Check that the configured key provider can be loaded and initialized, or throw an exception.
-
Field Details
-
LOG
-
keyProviderResults
-
cipherProviderResults
-
cipherResults
-
-
Constructor Details
-
EncryptionTest
private EncryptionTest()
-
-
Method Details
-
testKeyProvider
Check that the configured key provider can be loaded and initialized, or throw an exception.- Throws:
IOException
-
testCipherProvider
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 configurationcipher- chiper algorith to use for the column familykey- encryption key- Throws:
IOException- in case of encryption configuration error
-