@InterfaceAudience.LimitedPrivate(value="Tools") public class EncryptionTest extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
testCipherProvider(org.apache.hadoop.conf.Configuration conf)
Check that the configured cipher provider can be loaded and initialized, or throw an exception.
|
static void |
testEncryption(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 void |
testKeyProvider(org.apache.hadoop.conf.Configuration conf)
Check that the configured key provider can be loaded and initialized, or throw an exception.
|
public static void testKeyProvider(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic static void testCipherProvider(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic static void testEncryption(org.apache.hadoop.conf.Configuration conf,
String cipher,
byte[] key)
throws IOException
conf - HBase configurationcipher - chiper algorith to use for the column familykey - encryption keyIOException - in case of encryption configuration errorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.