Class DecryptionStream
- java.lang.Object
-
- java.io.InputStream
-
- org.pgpainless.decryption_verification.CloseForResultInputStream
-
- org.pgpainless.decryption_verification.DecryptionStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class DecryptionStream extends CloseForResultInputStream
Decryption Stream that handles updating and verification of detached signatures, as well as verification of integrity-protected input streams once the stream gets closed.
-
-
Field Summary
-
Fields inherited from class org.pgpainless.decryption_verification.CloseForResultInputStream
resultBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] bytes, int offset, int length)-
Methods inherited from class org.pgpainless.decryption_verification.CloseForResultInputStream
getResult
-
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
-
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classCloseForResultInputStream- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(@Nonnull byte[] bytes, int offset, int length) throws IOException
- Overrides:
readin classInputStream- Throws:
IOException
-
-