|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| 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
public class 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
read in class java.io.FilterInputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamb - 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 Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||