public class TestEncryptionUtil extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
DEFAULT_HASH_ALGORITHM |
private static String |
INVALID_HASH_ALG |
Constructor and Description |
---|
TestEncryptionUtil() |
Modifier and Type | Method and Description |
---|---|
void |
testHashAlgorithmMismatchShouldNotFailWithDefaultConfig() |
void |
testHashAlgorithmMismatchWhenFailExpected() |
void |
testHashAlgorithmMismatchWhenFailNotExpected() |
private void |
testKeyWrapping(String hashAlgorithm) |
void |
testKeyWrappingUsingHashAlgDefault() |
void |
testKeyWrappingUsingHashAlgMD5() |
void |
testKeyWrappingUsingHashAlgSHA256() |
void |
testKeyWrappingUsingHashAlgSHA384() |
void |
testKeyWrappingWithInvalidHashAlg() |
private void |
testKeyWrappingWithMismatchingAlgorithms(org.apache.hadoop.conf.Configuration conf) |
private void |
testWALKeyWrapping(String hashAlgorithm) |
void |
testWALKeyWrappingUsingHashAlgDefault() |
void |
testWALKeyWrappingUsingHashAlgMD5() |
void |
testWALKeyWrappingUsingHashAlgSHA256() |
void |
testWALKeyWrappingUsingHashAlgSHA384() |
void |
testWALKeyWrappingWithIncorrectKey() |
void |
testWALKeyWrappingWithInvalidHashAlg() |
private static final String INVALID_HASH_ALG
private static final String DEFAULT_HASH_ALGORITHM
public static final HBaseClassTestRule CLASS_RULE
public TestEncryptionUtil()
public void testKeyWrappingUsingHashAlgDefault() throws Exception
Exception
public void testKeyWrappingUsingHashAlgMD5() throws Exception
Exception
public void testKeyWrappingUsingHashAlgSHA256() throws Exception
Exception
public void testKeyWrappingUsingHashAlgSHA384() throws Exception
Exception
public void testKeyWrappingWithInvalidHashAlg() throws Exception
Exception
public void testWALKeyWrappingUsingHashAlgDefault() throws Exception
Exception
public void testWALKeyWrappingUsingHashAlgMD5() throws Exception
Exception
public void testWALKeyWrappingUsingHashAlgSHA256() throws Exception
Exception
public void testWALKeyWrappingUsingHashAlgSHA384() throws Exception
Exception
public void testWALKeyWrappingWithInvalidHashAlg() throws Exception
Exception
public void testWALKeyWrappingWithIncorrectKey() throws Exception
Exception
public void testHashAlgorithmMismatchWhenFailExpected() throws Exception
Exception
public void testHashAlgorithmMismatchWhenFailNotExpected() throws Exception
Exception
public void testHashAlgorithmMismatchShouldNotFailWithDefaultConfig() throws Exception
Exception
private void testKeyWrapping(String hashAlgorithm) throws Exception
Exception
private void testWALKeyWrapping(String hashAlgorithm) throws Exception
Exception
private void testKeyWrappingWithMismatchingAlgorithms(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.