Class FileKeyUnwrapper

    • 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 interface DecryptionKeyRetriever
        Parameters:
        keyMetadataBytes - arbitrary byte array with encryption key metadata
        Returns:
        encryption key. Key length can be either 16, 24 or 32 bytes.