Class IntegrityProtectedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.pgpainless.decryption_verification.IntegrityProtectedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class IntegrityProtectedInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description IntegrityProtectedInputStream(InputStream inputStream, org.bouncycastle.openpgp.PGPEncryptedData encryptedData, ConsumerOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] b, int offset, int length)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
IntegrityProtectedInputStream
public IntegrityProtectedInputStream(InputStream inputStream, org.bouncycastle.openpgp.PGPEncryptedData encryptedData, ConsumerOptions options)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(@Nonnull byte[] b, int offset, int length) throws IOException
- Overrides:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-