|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.logi.crypto.io.VerifyStream
This InputStream reads the stream generated by a SignStream and verifies the embedded signatures or hashes. It will not pass any data through until that data has been verified.
SignStream| Field Summary |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
VerifyStream(java.io.InputStream in,
int blockSize,
SignatureKey key,
HashState fs)
Create a new VerifyStream object. |
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read from this input stream without blocking. |
int |
drain()
Drain the underlying stream if it is a DecryptStream. |
boolean |
markSupported()
Returns false. |
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of bytes. |
long |
skip(long n)
Does nothing and returns 0. |
| Methods inherited from class java.io.FilterInputStream |
close, mark, read, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VerifyStream(java.io.InputStream in,
int blockSize,
SignatureKey key,
HashState fs)
blockSize and fs and with the
key that matches key
SignStream| Method Detail |
public int read()
throws java.io.IOException
java.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
The actual number of bytes read is returned or -1 if the end of the stream is reached.
java.io.IOExceptionpublic int drain()
DecryptStream.drain()
public int available()
throws java.io.IOException
java.io.IOException
public long skip(long n)
throws java.io.IOException
java.io.IOExceptionpublic boolean markSupported()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||