Class FileKeyUnwrapper
- java.lang.Object
-
- org.apache.parquet.crypto.keytools.FileKeyUnwrapper
-
- All Implemented Interfaces:
DecryptionKeyRetriever
public class FileKeyUnwrapper extends Object implements DecryptionKeyRetriever
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getKey(byte[] keyMetadataBytes)
Returns encryption key using the key metadata.
-
-
-
Method Detail
-
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 interfaceDecryptionKeyRetriever
- Parameters:
keyMetadataBytes
- arbitrary byte array with encryption key metadata- Returns:
- encryption key. Key length can be either 16, 24 or 32 bytes.
-
-