|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.ecat.util.MessageDigest
The MessageDigest class defines a general class for computing digest functions. It is defined as an abstract class that is subclassed by message digest algorithms. In this way the PKCS classes can be built to take a MessageDigest object without needing to know what 'kind' of message digest they are computing. This class defines the standard functions that all message digest algorithms share, and ways to put all Java fundamental types into the digest. It does not define methods for digestifying either arbitrary objects or arrays of objects however.
Field Summary | |
byte[] |
digestBits
the actual digest bits. |
boolean |
digestValid
status of the digest |
Constructor Summary | |
MessageDigest()
|
Method Summary | |
void |
computeDigest(byte[] source)
Complete digest computation on an array of bytes. |
abstract void |
finish()
Perform the final computations and cleanup. |
abstract void |
init()
This function is used to initialize any internal digest variables or parameters. |
boolean |
isEqual(byte[] otherDigest)
Non static version that compares this digest to one passed. |
static boolean |
isEqual(byte[] digesta,
byte[] digestb)
Compare two digests for equality. |
String |
stringVal()
` * Return a string representation of this object. |
String |
toString()
` * Return a string representation of this object. |
void |
update(boolean aValue)
|
abstract void |
update(byte aValue)
The basic unit of digestifying is the byte. |
void |
update(byte[] input)
|
void |
update(int aValue)
|
void |
update(int[] input)
|
void |
update(long aValue)
|
void |
update(long[] input)
|
void |
update(short aValue)
|
void |
update(short[] input)
|
void |
update(String input)
Add the bytes in the String 'input' to the current digest. |
void |
updateASCII(String input)
Treat the string as a sequence of ISO-Latin1 (8 bit) characters. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public byte[] digestBits
public boolean digestValid
Constructor Detail |
public MessageDigest()
Method Detail |
public abstract void init()
public abstract void update(byte aValue)
public void update(boolean aValue)
public void update(short aValue)
public void update(int aValue)
public void update(long aValue)
public void update(byte[] input)
public void update(short[] input)
public void update(int[] input)
public void update(long[] input)
public void update(String input)
public void updateASCII(String input)
public abstract void finish()
public void computeDigest(byte[] source)
public String stringVal()
public String toString()
public static boolean isEqual(byte[] digesta, byte[] digestb)
public boolean isEqual(byte[] otherDigest)
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |