org.bouncycastle.openpgp
Class IntegrityProtectedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.bouncycastle.openpgp.IntegrityProtectedInputStream
- public class IntegrityProtectedInputStream
- extends java.io.FilterInputStream
InputStream
that performs verification of integrity protection upon close()
.
Fields inherited from class java.io.FilterInputStream |
in |
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.FilterInputStream |
available, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegrityProtectedInputStream
public IntegrityProtectedInputStream(java.io.InputStream in,
PGPEncryptedData dataPacket)
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException