Class FileKeyUnwrapper

java.lang.Object
org.apache.parquet.crypto.keytools.FileKeyUnwrapper
All Implemented Interfaces:
DecryptionKeyRetriever

public class FileKeyUnwrapper extends Object implements DecryptionKeyRetriever
  • Method Details

    • getKey

      public byte[] getKey(byte[] keyMetadataBytes)
      Description copied from interface: DecryptionKeyRetriever
      Returns encryption key using the key metadata. If your key retrieval code throws runtime exceptions related to access control (permission) problems (such as Hadoop AccessControlException), catch them and throw the KeyAccessDeniedException.
      Specified by:
      getKey in interface DecryptionKeyRetriever
      Parameters:
      keyMetadataBytes - arbitrary byte array with encryption key metadata
      Returns:
      encryption key. Key length can be either 16, 24 or 32 bytes.