public class TestHFileEncryption extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static HBaseClassTestRule | CLASS_RULE | 
| private static org.apache.hadoop.hbase.io.crypto.Encryption.Context | cryptoContext | 
| private static org.apache.hadoop.fs.FileSystem | fs | 
| private static org.slf4j.Logger | LOG | 
| private static SecureRandom | RNG | 
| private static HBaseTestingUtility | TEST_UTIL | 
| Constructor and Description | 
|---|
| TestHFileEncryption() | 
| Modifier and Type | Method and Description | 
|---|---|
| private long | readAndVerifyBlock(long pos,
                  org.apache.hadoop.hbase.io.hfile.HFileContext ctx,
                  org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReaderImpl hbr,
                  int size) | 
| static void | setUp() | 
| void | testDataBlockEncryption() | 
| void | testHFileEncryption() | 
| void | testHFileEncryptionMetadata() | 
| private int | writeBlock(org.apache.hadoop.fs.FSDataOutputStream os,
          org.apache.hadoop.hbase.io.hfile.HFileContext fileContext,
          int size) | 
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final SecureRandom RNG
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.hbase.io.crypto.Encryption.Context cryptoContext
public TestHFileEncryption()
private int writeBlock(org.apache.hadoop.fs.FSDataOutputStream os, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, int size) throws IOException
IOExceptionprivate long readAndVerifyBlock(long pos, org.apache.hadoop.hbase.io.hfile.HFileContext ctx, org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReaderImpl hbr, int size) throws IOException
IOExceptionpublic void testDataBlockEncryption() throws IOException
IOExceptionpublic void testHFileEncryptionMetadata() throws Exception
Exceptionpublic void testHFileEncryption() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.