public interface FileKeyMaterialStore
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyMaterial(String keyIDInFile,
String keyMaterial)
Add key material for one encryption key.
|
Set<String> |
getKeyIDSet() |
String |
getKeyMaterial(String keyIDInFile)
Get key material
|
void |
initialize(org.apache.hadoop.fs.Path parquetFilePath,
org.apache.hadoop.conf.Configuration hadoopConfig,
boolean tempStore)
Initializes key material store for a parquet file.
|
void |
moveMaterialTo(FileKeyMaterialStore targetKeyMaterialStore)
Move key material to another store.
|
void |
removeMaterial()
Remove key material from persistent store.
|
void |
saveMaterial()
After key material was added for all keys in the given Parquet file,
save material in persistent store.
|
void initialize(org.apache.hadoop.fs.Path parquetFilePath,
org.apache.hadoop.conf.Configuration hadoopConfig,
boolean tempStore)
parquetFilePath - Parquet file pathhadoopConfig - Hadoop configurationtempStore - set true if this is a temporary store, used in key rotationvoid addKeyMaterial(String keyIDInFile, String keyMaterial)
keyIDInFile - ID of the key in Parquet filekeyMaterial - key materialvoid saveMaterial()
String getKeyMaterial(String keyIDInFile)
keyIDInFile - ID of a key in Parquet fileSet<String> getKeyIDSet()
void removeMaterial()
void moveMaterialTo(FileKeyMaterialStore targetKeyMaterialStore)
targetKeyMaterialStore - target storeCopyright © 2023 The Apache Software Foundation. All rights reserved.