@InterfaceAudience.Public @InterfaceStability.Evolving public class EncryptionTest extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
testCipherProvider(Configuration conf)
Check that the configured cipher provider can be loaded and initialized, or
throw an exception.
|
static void |
testEncryption(Configuration conf,
java.lang.String cipher,
byte[] key)
Check that the specified cipher can be loaded and initialized, or throw
an exception.
|
static void |
testKeyProvider(Configuration conf)
Check that the configured key provider can be loaded and initialized, or
throw an exception.
|
public static void testKeyProvider(Configuration conf)
throws java.io.IOException
conf - java.io.IOExceptionpublic static void testCipherProvider(Configuration conf)
throws java.io.IOException
conf - java.io.IOExceptionpublic static void testEncryption(Configuration conf,
java.lang.String cipher,
byte[] key)
throws java.io.IOException
conf - cipher - key - java.io.IOException