@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
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 Cloudera. All rights reserved.