Package org.apache.iceberg.encryption
Class PlaintextEncryptionManager
java.lang.Object
org.apache.iceberg.encryption.PlaintextEncryptionManager
- All Implemented Interfaces:
Serializable
,EncryptionManager
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecrypt
(EncryptedInputFile encrypted) Given anEncryptedInputFile.encryptedInputFile()
representing the raw encrypted bytes from the underlying file system, and given metadata about how the file was encrypted viaEncryptedInputFile.keyMetadata()
, return anInputFile
that returns decrypted input streams.encrypt
(OutputFile rawOutput) Given a handle on anOutputFile
that writes raw bytes to the underlying file system, return a bundle of anEncryptedOutputFile.encryptingOutputFile()
that writes encrypted bytes to the underlying file system, and theEncryptedOutputFile.keyMetadata()
that points to the encryption key that is being used to encrypt this file.static EncryptionManager
instance()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.iceberg.encryption.EncryptionManager
decrypt, encrypt
-
Method Details
-
instance
-
decrypt
Description copied from interface:EncryptionManager
Given anEncryptedInputFile.encryptedInputFile()
representing the raw encrypted bytes from the underlying file system, and given metadata about how the file was encrypted viaEncryptedInputFile.keyMetadata()
, return anInputFile
that returns decrypted input streams.- Specified by:
decrypt
in interfaceEncryptionManager
-
encrypt
Description copied from interface:EncryptionManager
Given a handle on anOutputFile
that writes raw bytes to the underlying file system, return a bundle of anEncryptedOutputFile.encryptingOutputFile()
that writes encrypted bytes to the underlying file system, and theEncryptedOutputFile.keyMetadata()
that points to the encryption key that is being used to encrypt this file.- Specified by:
encrypt
in interfaceEncryptionManager
-