|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.util.MD5
public class MD5
This class provides utitlities to compute MD5 for array of bytes. The implementation is directly taken from the "The Legion Of The Bouncy Castle (http://www.bouncycastle.org).
Constructor Summary | |
---|---|
MD5()
Standard constructor |
Method Summary | |
---|---|
byte[] |
calculateMD5(byte[] input)
Compute md5 of given byte array. |
byte[] |
computeMD5Credentials(java.lang.String username,
java.lang.String password,
byte[] nonce)
Compute md5 credentials for the given username and password. |
protected void |
processBlock()
|
protected void |
processLength(long bitLength)
|
protected void |
processWord(byte[] in,
int inOff)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MD5()
Method Detail |
---|
public byte[] calculateMD5(byte[] input)
input
- the byte array to be hashed
public final byte[] computeMD5Credentials(java.lang.String username, java.lang.String password, byte[] nonce)
username
- the usernamepassword
- the passwordnonce
- the text plain nonce
protected void processWord(byte[] in, int inOff)
protected void processLength(long bitLength)
protected void processBlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |