|
|||||||||
| Home >> All >> org >> apache >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.java.security
Class MessageDigest

java.lang.Objectorg.apache.java.security.MessageDigest
- Direct Known Subclasses:
- MD5
Deprecated. Use the java.security package.
- public abstract class MessageDigest
- extends java.lang.Object
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.
- Version:
- $Id: MessageDigest.java 264148 2005-08-29 14:21:04Z henning $
| Constructor Summary | |
MessageDigest()
Deprecated. Creates the algorithm and reset its state. |
|
| Method Summary | |
void |
append(byte[] block)
Deprecated. Append another block to the message. |
void |
append(byte[] block,
int length)
Deprecated. Append another block of specified length to the message. |
abstract void |
append(byte[] block,
int offset,
int length)
Deprecated. Append another block of specified length to the message starting at the given offset. |
byte[] |
digest(byte[] block)
Deprecated. Appends a message block and return its message digest. |
byte[] |
digest(byte[] block,
int length)
Deprecated. Appends a message block with specified length and return its message digest. |
abstract byte[] |
digest(byte[] block,
int offset,
int length)
Deprecated. Appends a message block with specified length starting from the given offset and return its message digest. |
abstract void |
reset()
Deprecated. Resets the state of the class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
MessageDigest
public MessageDigest()
- Deprecated.
- Creates the algorithm and reset its state.
- Creates the algorithm and reset its state.
| Method Detail |
append
public void append(byte[] block)
- Deprecated.
- Append another block to the message.
- Append another block to the message.
append
public void append(byte[] block,
int length)
- Deprecated.
- Append another block of specified length to the message.
- Append another block of specified length to the message.
append
public abstract void append(byte[] block,
int offset,
int length)
- Deprecated.
- Append another block of specified length to the message starting at the given offset.
- Append another block of specified length to the message starting at the given offset.
digest
public byte[] digest(byte[] block)
- Deprecated.
- Appends a message block and return its message digest.
- Appends a message block and return its message digest.
digest
public byte[] digest(byte[] block,
int length)
- Deprecated.
- Appends a message block with specified length and return its message digest.
- Appends a message block with specified length and return its message digest.
digest
public abstract byte[] digest(byte[] block,
int offset,
int length)
- Deprecated.
- Appends a message block with specified length starting from the given offset and return its message digest.
- Appends a message block with specified length starting from the given offset and return its message digest.
reset
public abstract void reset()
- Deprecated.
- Resets the state of the class. Beware: calling this method erases all data previously inserted.
- Resets the state of the class. Beware: calling this method erases all data previously inserted.
|
|||||||||
| Home >> All >> org >> apache >> java >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.java.security.MessageDigest