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
Exceptionpublic void testKeyWrappingUsingHashAlgMD5() throws Exception
Exceptionpublic void testKeyWrappingUsingHashAlgSHA256() throws Exception
Exceptionpublic void testKeyWrappingUsingHashAlgSHA384() throws Exception
Exceptionpublic void testKeyWrappingWithInvalidHashAlg() throws Exception
Exceptionpublic void testWALKeyWrappingUsingHashAlgDefault() throws Exception
Exceptionpublic void testWALKeyWrappingUsingHashAlgMD5() throws Exception
Exceptionpublic void testWALKeyWrappingUsingHashAlgSHA256() throws Exception
Exceptionpublic void testWALKeyWrappingUsingHashAlgSHA384() throws Exception
Exceptionpublic void testWALKeyWrappingWithInvalidHashAlg() throws Exception
Exceptionpublic void testWALKeyWrappingWithIncorrectKey() throws Exception
Exceptionpublic void testHashAlgorithmMismatchWhenFailExpected() throws Exception
Exceptionpublic void testHashAlgorithmMismatchWhenFailNotExpected() throws Exception
Exceptionpublic void testHashAlgorithmMismatchShouldNotFailWithDefaultConfig() throws Exception
Exceptionprivate void testKeyWrapping(String hashAlgorithm) throws Exception
Exceptionprivate void testWALKeyWrapping(String hashAlgorithm) throws Exception
Exceptionprivate void testKeyWrappingWithMismatchingAlgorithms(org.apache.hadoop.conf.Configuration conf) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.