| java.lang.Object org.w3c.tools.crypt.Md5
Constructor Summary | |
public | Md5(String input, String enc) Construct a digestifier for the given string. | public | Md5(String input) Construct a digestifier for the given string. | public | Md5(InputStream in) Construct a digestifier for the given input stream. |
Md5 | public Md5(String input, String enc)(Code) | | Construct a digestifier for the given string.
Parameters: input - The string to be digestified. Parameters: encoding - the encoding name used (such as UTF8) |
Md5 | public Md5(String input)(Code) | | Construct a digestifier for the given string.
Parameters: input - The string to be digestified. |
Md5 | public Md5(InputStream in)(Code) | | Construct a digestifier for the given input stream.
Parameters: in - The input stream to be digestified. |
getDigest | public byte[] getDigest() throws IOException(Code) | | Get the digest for our input stream.
This method constructs the input stream digest, and return it, as a
a String, following the MD5 (rfc1321) algorithm,
An instance of String, giving the message digest. exception: IOException - Thrown if the digestifier was unable to read theinput stream. |
getStringDigest | public String getStringDigest()(Code) | | Get the digest, as a proper string.
|
processString | public byte[] processString()(Code) | | Get the digest, for this string digestifier.
This method doesn't throw any IOException, since it knows that the
underlying stream ws built from a String.
|
|
|