|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.crypt.Md5
public class Md5
Constructor Summary | |
---|---|
Md5(java.io.InputStream in)
Construct a digestifier for the given input stream. |
|
Md5(java.lang.String input)
Construct a digestifier for the given string. |
|
Md5(java.lang.String input,
java.lang.String enc)
Construct a digestifier for the given string. |
Method Summary | |
---|---|
byte[] |
getDigest()
Get the digest for our input stream. |
java.lang.String |
getStringDigest()
Get the digest, as a proper string. |
static void |
main(java.lang.String[] args)
|
byte[] |
processString()
Get the digest, for this string digestifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Md5(java.lang.String input, java.lang.String enc)
input
- The string to be digestified.encoding
- the encoding name used (such as UTF8)public Md5(java.lang.String input)
input
- The string to be digestified.public Md5(java.io.InputStream in)
in
- The input stream to be digestified.Method Detail |
---|
public byte[] getDigest() throws java.io.IOException
java.io.IOException
- Thrown if the digestifier was unable to read the
input stream.public byte[] processString()
public java.lang.String getStringDigest()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |