@InterfaceAudience.LimitedPrivate(value="Tools") public class EncryptionTest extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static Map<String,Boolean> |
cipherProviderResults |
(package private) static Map<String,Boolean> |
cipherResults |
(package private) static Map<String,Boolean> |
keyProviderResults |
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
EncryptionTest() |
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.
|
private static final org.slf4j.Logger LOG
static final Map<String,Boolean> keyProviderResults
static final Map<String,Boolean> cipherProviderResults
static final Map<String,Boolean> cipherResults
private EncryptionTest()
public static void testKeyProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- IOException
public static void testCipherProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- IOException
public static void testEncryption(org.apache.hadoop.conf.Configuration conf, String cipher, byte[] key) throws IOException
conf
- cipher
- key
- IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.