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 InputFiledecrypt(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 anInputFilethat returns decrypted input streams.EncryptedOutputFileencrypt(OutputFile rawOutput)Given a handle on anOutputFilethat 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:EncryptionManagerGiven anEncryptedInputFile.encryptedInputFile()representing the raw encrypted bytes from the underlying file system, and given metadata about how the file was encrypted viaEncryptedInputFile.keyMetadata(), return anInputFilethat returns decrypted input streams.- Specified by:
decryptin interfaceEncryptionManager
-
encrypt
public EncryptedOutputFile encrypt(OutputFile rawOutput)
Description copied from interface:EncryptionManagerGiven a handle on anOutputFilethat 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:
encryptin interfaceEncryptionManager
-
-