public class Hadoop23Shims.HdfsEncryptionShim extends Object implements HadoopShims.HdfsEncryptionShim
| Constructor and Description |
|---|
Hadoop23Shims.HdfsEncryptionShim(URI uri,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
arePathsOnSameEncryptionZone(Path path1,
Path path2) |
int |
comparePathKeyStrength(Path path1,
Path path2) |
void |
createEncryptionZone(Path path,
String keyName) |
void |
createKey(String keyName,
int bitLength) |
void |
deleteKey(String keyName) |
List<String> |
getKeys() |
boolean |
isPathEncrypted(Path path) |
public Hadoop23Shims.HdfsEncryptionShim(URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic boolean isPathEncrypted(Path path) throws IOException
isPathEncrypted in interface HadoopShims.HdfsEncryptionShimIOExceptionpublic boolean arePathsOnSameEncryptionZone(Path path1, Path path2) throws IOException
arePathsOnSameEncryptionZone in interface HadoopShims.HdfsEncryptionShimIOExceptionpublic int comparePathKeyStrength(Path path1, Path path2) throws IOException
comparePathKeyStrength in interface HadoopShims.HdfsEncryptionShimIOExceptionpublic void createEncryptionZone(Path path, String keyName) throws IOException
createEncryptionZone in interface HadoopShims.HdfsEncryptionShimIOExceptionpublic void createKey(String keyName, int bitLength) throws IOException, NoSuchAlgorithmException
createKey in interface HadoopShims.HdfsEncryptionShimIOExceptionNoSuchAlgorithmExceptionpublic void deleteKey(String keyName) throws IOException
deleteKey in interface HadoopShims.HdfsEncryptionShimIOExceptionpublic List<String> getKeys() throws IOException
getKeys in interface HadoopShims.HdfsEncryptionShimIOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.