Class EncryptionStream
java.lang.Object
java.io.OutputStream
org.pgpainless.encryption_signing.EncryptionStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
OutputStream that produces an OpenPGP message. The message can be encrypted, signed, or both,
depending on its configuration.
This class is based upon Jens Neuhalfen's Bouncy-GPG PGPEncryptingStream.
- See Also:
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Method Details
-
prepareSigningStream
public void prepareSigningStream() -
prepareInputEncoding
public void prepareInputEncoding() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getResult
-
isClosed
public boolean isClosed()
-