|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.java.security.MessageDigest
This interface abstracts a message digest algorithm.
Note: even if standard Java 1.1 APIs already provide
a message digest implementation, this class is used on those
Java runtime environments (like Kaffe) where the package
java.security
is highly improbable to be found.
Constructor Summary | |
MessageDigest()
Creates the algorithm and reset its state. |
Method Summary | |
void |
append(byte[] block)
Append another block to the message. |
void |
append(byte[] block,
int length)
Append another block of specified length to the message. |
abstract void |
append(byte[] block,
int offset,
int length)
Append another block of specified length to the message starting at the given offset. |
byte[] |
digest(byte[] block)
Appends a message block and return its message digest. |
byte[] |
digest(byte[] block,
int length)
Appends a message block with specified length and return its message digest. |
abstract byte[] |
digest(byte[] message,
int offset,
int length)
Appends a message block with specified length starting from the given offset and return its message digest. |
abstract void |
reset()
Resets the state of the class. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public MessageDigest()
Method Detail |
public abstract void reset()
public void append(byte[] block)
public void append(byte[] block, int length)
public abstract void append(byte[] block, int offset, int length)
public byte[] digest(byte[] block)
public byte[] digest(byte[] block, int length)
public abstract byte[] digest(byte[] message, int offset, int length)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |