public interface EncryptionContextProvider extends Destroyable
| Modifier and Type | Method and Description |
|---|---|
ABFSKey |
getEncryptionContext(String path)
Fetch encryption context for a given path.
|
ABFSKey |
getEncryptionKey(String path,
ABFSKey encryptionContext)
Fetch encryption key in-exchange for encryption context.
|
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
String accountName,
String fileSystem)
Initialize instance.
|
destroy, isDestroyedvoid initialize(org.apache.hadoop.conf.Configuration configuration,
String accountName,
String fileSystem)
throws IOException
configuration - rawConfig instanceaccountName - Account Name (with domain)fileSystem - container nameIOException - error in initializationABFSKey getEncryptionContext(String path) throws IOException
path - file path from filesystem rootIOException - error in fetching encryption contextABFSKey getEncryptionKey(String path, ABFSKey encryptionContext) throws IOException
path - file path from filesystem rootencryptionContext - encryptionContext fetched from serverIOException - error in fetching encryption keyCopyright © 2008–2024 Apache Software Foundation. All rights reserved.