Package org.apache.iceberg.encryption
Interface NativeEncryptionKeyMetadata
- All Superinterfaces:
EncryptionKeyMetadata
EncryptionKeyMetadata for use with format-native encryption.-
Field Summary
Fields inherited from interface org.apache.iceberg.encryption.EncryptionKeyMetadata
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionAdditional authentication data as aByteBufferdefault NativeEncryptionKeyMetadatacopyWithLength(long length) Copy this key metadata and set the file length.Encryption key as aByteBufferdefault LongEncrypted file lengthMethods inherited from interface org.apache.iceberg.encryption.EncryptionKeyMetadata
buffer, copy
-
Method Details
-
encryptionKey
ByteBuffer encryptionKey()Encryption key as aByteBuffer -
aadPrefix
ByteBuffer aadPrefix()Additional authentication data as aByteBuffer -
fileLength
Encrypted file length -
copyWithLength
Copy this key metadata and set the file length.- Parameters:
length- length of the encrypted file in bytes- Returns:
- a copy of this key metadata (key and AAD) with the file length
-