Package org.apache.iceberg.encryption
Class PlaintextEncryptionManager
- java.lang.Object
-
- org.apache.iceberg.encryption.PlaintextEncryptionManager
-
- All Implemented Interfaces:
java.io.Serializable
,EncryptionManager
public class PlaintextEncryptionManager extends java.lang.Object implements EncryptionManager
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlaintextEncryptionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputFile
decrypt(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.EncryptedOutputFile
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.-
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 Detail
-
decrypt
public InputFile decrypt(EncryptedInputFile encrypted)
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
public EncryptedOutputFile encrypt(OutputFile rawOutput)
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
-
-