|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
cryptix.security.MessageDigestOutputStream
This class is an output stream that hashes the data sent to it using the message digest that it has been constructed with.
References
Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.
$Revision: 1.2 $
MessageDigest,
SHAOutputStream,
MD5OutputStream| Constructor Summary | |
MessageDigestOutputStream(MessageDigest md0)
|
|
| Method Summary | |
byte[] |
digest()
Completes the digest and resets. |
MessageHash |
digestAsHash()
Completes the digest and resets. |
void |
write(byte[] b)
Writes an array of bytes to the message digestor |
void |
write(byte[] b,
int off,
int len)
Writes a sub array of bytes to the message digestor. |
void |
write(int b)
Writes a byte to the message digestor. |
| Methods inherited from class java.io.OutputStream |
close, flush |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageDigestOutputStream(MessageDigest md0)
md0 - the message digestor that is uses to hash the data.| Method Detail |
public final void write(int b)
b - the bytepublic final void write(byte[] b)
b - the data to be added to the hash
public final void write(byte[] b,
int off,
int len)
b - the data to be added to the hashoff - the start offset in the datalen - the number of bytes that are writtenpublic final byte[] digest()
public final MessageHash digestAsHash()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||