public class PlaintextEncryptionManager extends java.lang.Object implements EncryptionManager
| Constructor and Description |
|---|
PlaintextEncryptionManager() |
| Modifier and Type | Method and Description |
|---|---|
InputFile |
decrypt(EncryptedInputFile encrypted)
Given an
EncryptedInputFile.encryptedInputFile() representing the raw encrypted bytes
from the underlying file system, and given metadata about how the file was encrypted via EncryptedInputFile.keyMetadata(), return an InputFile that returns decrypted input
streams. |
EncryptedOutputFile |
encrypt(OutputFile rawOutput)
Given a handle on an
OutputFile that writes raw bytes to the underlying file system,
return a bundle of an EncryptedOutputFile.encryptingOutputFile() that writes encrypted
bytes to the underlying file system, and the EncryptedOutputFile.keyMetadata() that
points to the encryption key that is being used to encrypt this file. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecrypt, encryptpublic InputFile decrypt(EncryptedInputFile encrypted)
EncryptionManagerEncryptedInputFile.encryptedInputFile() representing the raw encrypted bytes
from the underlying file system, and given metadata about how the file was encrypted via EncryptedInputFile.keyMetadata(), return an InputFile that returns decrypted input
streams.decrypt in interface EncryptionManagerpublic EncryptedOutputFile encrypt(OutputFile rawOutput)
EncryptionManagerOutputFile that writes raw bytes to the underlying file system,
return a bundle of an EncryptedOutputFile.encryptingOutputFile() that writes encrypted
bytes to the underlying file system, and the EncryptedOutputFile.keyMetadata() that
points to the encryption key that is being used to encrypt this file.encrypt in interface EncryptionManager