org.apache.hadoop.hbase.util
Class EncryptionTest

java.lang.Object
  extended by org.apache.hadoop.hbase.util.EncryptionTest

@InterfaceAudience.Public
@InterfaceStability.Unstable
public class EncryptionTest
extends Object


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

testKeyProvider

public static void testKeyProvider(org.apache.hadoop.conf.Configuration conf)
                            throws IOException
Check that the configured key provider can be loaded and initialized, or throw an exception.

Parameters:
conf -
Throws:
IOException

testCipherProvider

public static void testCipherProvider(org.apache.hadoop.conf.Configuration conf)
                               throws IOException
Check that the configured cipher provider can be loaded and initialized, or throw an exception.

Parameters:
conf -
Throws:
IOException

testEncryption

public static void testEncryption(org.apache.hadoop.conf.Configuration conf,
                                  String cipher,
                                  byte[] key)
                           throws IOException
Check that the specified cipher can be loaded and initialized, or throw an exception. Verifies key and cipher provider configuration as a prerequisite for cipher verification.

Parameters:
conf -
cipher -
key -
Throws:
IOException


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.