Package org.apache.iceberg.encryption
Class EncryptionUtil
java.lang.Object
org.apache.iceberg.encryption.EncryptionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckCompatibility(Map<String, String> tableProperties, int formatVersion) static EncryptionManagercreateEncryptionManager(List<EncryptedKey> keys, Map<String, String> tableProperties, KeyManagementClient kmsClient) static KeyManagementClientcreateKmsClient(Map<String, String> catalogProperties) static ByteBufferdecryptManifestListKeyMetadata(ManifestListFile manifestList, EncryptionManager em) Decrypt the key metadata for a manifest list.static Map<String, EncryptedKey> static EncryptedOutputFileplainAsEncryptedOutput(OutputFile encryptingOutputFile) static ByteBuffersetFileLength(ByteBuffer keyMetadata, long fileLength)
-
Method Details
-
createKmsClient
-
createEncryptionManager
public static EncryptionManager createEncryptionManager(List<EncryptedKey> keys, Map<String, String> tableProperties, KeyManagementClient kmsClient) -
plainAsEncryptedOutput
-
setFileLength
-
decryptManifestListKeyMetadata
public static ByteBuffer decryptManifestListKeyMetadata(ManifestListFile manifestList, EncryptionManager em) Decrypt the key metadata for a manifest list.- Parameters:
manifestList- a ManifestListFileem- the table's EncryptionManager- Returns:
- a decrypted key metadata buffer
-
encryptionKeys
-
checkCompatibility
-