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