public class MD5Hash
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
MD5Hash(java.lang.String hashString)
Instantiates a new m d5 hash.
|
public MD5Hash(java.lang.String hashString)
hashString - the hash stringpublic static MD5Hash md5(java.io.File file) throws java.security.NoSuchAlgorithmException, java.io.IOException
file - the filejava.security.NoSuchAlgorithmException - the no such algorithm exceptionjava.io.IOException - Signals that an I/O exception has occurred.public static MD5Hash md5(java.lang.String s) throws java.security.NoSuchAlgorithmException
s - the sjava.security.NoSuchAlgorithmException - the no such algorithm exceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getHash()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object