@InterfaceAudience.Public @InterfaceStability.Evolving 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.apache.commons.logging.Log |
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.
|
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–2019 The Apache Software Foundation. All rights reserved.