cryptix
Class MessageHash
java.lang.Object
|
+--cryptix.MessageHash
- Direct Known Subclasses:
- HashMD5
- public class MessageHash
- extends java.lang.Object
this class reprosents the output from a message digestor in a form
where the type and be asertained.
Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
All rights reserved.
Constructor Summary |
protected |
MessageHash(byte[] hash0)
You can not create an instance of this object |
Method Summary |
boolean |
equals(java.lang.Object obj)
|
protected boolean |
equalTo(byte[] buffer)
|
int |
hashCode()
|
int |
length()
|
byte[] |
toByteArray()
|
java.lang.String |
toString()
Returns a big endian Hex string showing the value of the hash. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MessageHash
protected MessageHash(byte[] hash0)
- You can not create an instance of this object
- See Also:
java.crypt.HashSHA
,
java.crypt.HashMD5
toByteArray
public final byte[] toByteArray()
- Returns:
- the hash as a new byte array.
length
public final int length()
- Returns:
- the hash length.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
equalTo
protected final boolean equalTo(byte[] buffer)
toString
public java.lang.String toString()
- Returns a big endian Hex string showing the value of the hash.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string reprosenting the hash.