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 void
close()
int
read()
int
read(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classCloseForResultInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(@Nonnull byte[] bytes, int offset, int length) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
-