public static interface HadoopShims.KeyProvider
| Modifier and Type | Method and Description |
|---|---|
HadoopShims.LocalKey |
createLocalKey(HadoopShims.KeyMetadata key)
Create a local key for the given key version.
|
Key |
decryptLocalKey(HadoopShims.KeyMetadata key,
byte[] encryptedKey)
Decrypt a local key for reading a file.
|
HadoopShims.KeyMetadata |
getCurrentKeyVersion(String keyName)
Get the current metadata for a given key.
|
List<String> |
getKeyNames()
Get the list of key names from the key provider.
|
List<String> getKeyNames() throws IOException
IOExceptionHadoopShims.KeyMetadata getCurrentKeyVersion(String keyName) throws IOException
keyName - the name of a keyIllegalArgumentException - if the key is unknownIOExceptionHadoopShims.LocalKey createLocalKey(HadoopShims.KeyMetadata key) throws IOException
key - the master key versionIOExceptionKey decryptLocalKey(HadoopShims.KeyMetadata key, byte[] encryptedKey) throws IOException
key - the master key versionencryptedKey - the encrypted keyIOExceptionCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.