|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
oracle.security.crypto.core.DigestInputStream
An input stream that keeps a message digest of the bytes going through it.
The method computeCurrent() computes and returns the current digest.
| Field Summary | |
protected MessageDigest |
messageDigestThe message digest used by this stream. |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
DigestInputStream(java.io.InputStream is, MessageDigest md)Create a new DigestInputStream with specified InputStream and Message Digest. |
|
| Method Summary | |
byte[] |
computeCurrent()Compute and return the current digest. |
MessageDigest |
getMessageDigest()Return the message digest for this stream. |
int |
read()Read one byte of data. |
int |
read(byte[] b, int off, int len)Reads into an array of bytes. |
void |
setMessageDigest(MessageDigest md)Set the message digest for this stream. |
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MessageDigest messageDigest
| Constructor Detail |
public DigestInputStream(java.io.InputStream is,
MessageDigest md)
| 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
b - the buffer which the data is read intooff - start offset of datalen - maximum number of bytes readjava.io.IOExceptionpublic byte[] computeCurrent()
public MessageDigest getMessageDigest()
public void setMessageDigest(MessageDigest md)
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||