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 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.conf.Configuration conf,
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 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.conf.Configuration conf, org.apache.hadoop.fs.FSDataOutputStream os, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, int size) throws IOException
IOException
private 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
IOException
public void testDataBlockEncryption() throws IOException
IOException
public void testHFileEncryptionMetadata() throws Exception
Exception
public void testHFileEncryption() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.