public static interface HadoopShims.HdfsEncryptionShim
| Modifier and Type | Method and Description |
|---|---|
boolean |
arePathsOnSameEncryptionZone(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
Checks if two HDFS paths are on the same encrypted or unencrypted zone.
|
int |
comparePathKeyStrength(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
Compares two encrypted path strengths.
|
void |
createEncryptionZone(org.apache.hadoop.fs.Path path,
String keyName)
create encryption zone by path and keyname
|
void |
createKey(String keyName,
int bitLength)
Creates an encryption key.
|
void |
deleteKey(String keyName) |
List<String> |
getKeys() |
boolean |
isPathEncrypted(org.apache.hadoop.fs.Path path)
Checks if a given HDFS path is encrypted.
|
boolean isPathEncrypted(org.apache.hadoop.fs.Path path)
throws IOException
path - Path to HDFS file systemIOException - If an error occurred attempting to get encryption informationboolean arePathsOnSameEncryptionZone(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
throws IOException
path1 - Path to HDFS file systempath2 - Path to HDFS file systemIOException - If an error occurred attempting to get encryption informationint comparePathKeyStrength(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
throws IOException
path1 - HDFS path to compare.path2 - HDFS path to compare.IOException - If an error occurred attempting to get encryption/key metadatavoid createEncryptionZone(org.apache.hadoop.fs.Path path,
String keyName)
throws IOException
path - HDFS path to create encryption zonekeyName - keynameIOExceptionvoid createKey(String keyName, int bitLength) throws IOException, NoSuchAlgorithmException
keyName - Name of the keybitLength - Key encryption length in bits (128 or 256).IOException - If an error occurs while creating the encryption keyNoSuchAlgorithmException - If cipher algorithm is invalid.void deleteKey(String keyName) throws IOException
IOExceptionList<String> getKeys() throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.