@InterfaceAudience.Public @InterfaceStability.Evolving 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
conf - IOExceptionpublic static void testCipherProvider(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - IOExceptionpublic static void testEncryption(org.apache.hadoop.conf.Configuration conf,
String cipher,
byte[] key)
throws IOException
conf - cipher - key - IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.