Interface FileKeyMaterialStore

All Known Implementing Classes:
HadoopFSKeyMaterialStore

public interface FileKeyMaterialStore
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addKeyMaterial(String keyIDInFile, String keyMaterial)
    Add key material for one encryption key.
     
    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
    Remove key material from persistent store.
    void
    After key material was added for all keys in the given Parquet file, save material in persistent store.
  • Method Details

    • initialize

      void initialize(org.apache.hadoop.fs.Path parquetFilePath, org.apache.hadoop.conf.Configuration hadoopConfig, boolean tempStore)
      Initializes key material store for a parquet file.
      Parameters:
      parquetFilePath - Parquet file path
      hadoopConfig - Hadoop configuration
      tempStore - set true if this is a temporary store, used in key rotation
    • addKeyMaterial

      void addKeyMaterial(String keyIDInFile, String keyMaterial)
      Add key material for one encryption key.
      Parameters:
      keyIDInFile - ID of the key in Parquet file
      keyMaterial - key material
    • saveMaterial

      void saveMaterial()
      After key material was added for all keys in the given Parquet file, save material in persistent store.
    • getKeyMaterial

      String getKeyMaterial(String keyIDInFile)
      Get key material
      Parameters:
      keyIDInFile - ID of a key in Parquet file
      Returns:
      key material
    • getKeyIDSet

      Set<String> getKeyIDSet()
      Returns:
      Set of all key IDs in this store (for the given Parquet file)
    • removeMaterial

      void removeMaterial()
      Remove key material from persistent store. Used in key rotation.
    • moveMaterialTo

      void moveMaterialTo(FileKeyMaterialStore targetKeyMaterialStore)
      Move key material to another store. Used in key rotation.
      Parameters:
      targetKeyMaterialStore - target store