Class FileKeyUnwrapper
java.lang.Object
org.apache.parquet.crypto.keytools.FileKeyUnwrapper
- All Implemented Interfaces:
DecryptionKeyRetriever
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getKey(byte[] keyMetadataBytes) Returns encryption key using the key metadata.
-
Method Details
-
getKey
public byte[] getKey(byte[] keyMetadataBytes) Description copied from interface:DecryptionKeyRetrieverReturns 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:
getKeyin interfaceDecryptionKeyRetriever- Parameters:
keyMetadataBytes- arbitrary byte array with encryption key metadata- Returns:
- encryption key. Key length can be either 16, 24 or 32 bytes.
-