public interface NativeEncryptionOutputFile extends EncryptedOutputFile, OutputFile
EncryptedOutputFile that can be used for format-native encryption.| Modifier and Type | Method and Description |
|---|---|
default PositionOutputStream |
create()
Create a new file and return a
PositionOutputStream to it. |
default PositionOutputStream |
createOrOverwrite()
Create a new file and return a
PositionOutputStream to it. |
NativeEncryptionKeyMetadata |
keyMetadata()
Metadata about the encryption key that is being used to encrypt the associated
EncryptedOutputFile.encryptingOutputFile(). |
default java.lang.String |
location()
Return the location this output file will create.
|
OutputFile |
plainOutputFile()
An
OutputFile instance for the underlying (plaintext) output stream. |
default InputFile |
toInputFile()
Return an
InputFile for the location of this output file. |
encryptingOutputFileNativeEncryptionKeyMetadata keyMetadata()
EncryptedOutputFileEncryptedOutputFile.encryptingOutputFile().keyMetadata in interface EncryptedOutputFileOutputFile plainOutputFile()
OutputFile instance for the underlying (plaintext) output stream.default PositionOutputStream create()
OutputFilePositionOutputStream to it.
If the file already exists, this will throw an exception.
create in interface OutputFiledefault PositionOutputStream createOrOverwrite()
OutputFilePositionOutputStream to it.
If the file already exists, this will not throw an exception and will replace the file.
createOrOverwrite in interface OutputFiledefault java.lang.String location()
OutputFilelocation in interface OutputFiledefault InputFile toInputFile()
OutputFileInputFile for the location of this output file.toInputFile in interface OutputFile