jxta.security.impl.hash
Class MD5Hash
java.lang.Object
|
+--jxta.security.impl.hash.MD5Hash
- public class MD5Hash
- extends java.lang.Object
- implements jxta.security.hash.Hash
Fields inherited from interface jxta.security.hash.Hash |
ALG_MD5,
ALG_NULL,
ALG_SHA1,
name |
Method Summary |
void |
clearDebug()
clear debug |
java.lang.Object |
clone()
Return a MD5 clone of this object's state |
int |
doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
Digest the final buffer. |
byte |
getAlgorithm()
Return algorithm type |
java.lang.String |
getAlgorithmName()
Algorithm name |
byte |
getDigestLength()
return digest length |
void |
reset()
|
void |
setDebug()
set debug |
void |
update(byte[] input,
int offset,
int len)
|
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MD5Hash
public MD5Hash()
getAlgorithmName
public java.lang.String getAlgorithmName()
- Algorithm name
setDebug
public void setDebug()
- set debug
clearDebug
public void clearDebug()
- clear debug
getAlgorithm
public byte getAlgorithm()
- Return algorithm type
- Specified by:
- getAlgorithm in interface jxta.security.hash.Hash
getDigestLength
public byte getDigestLength()
- return digest length
- Specified by:
- getDigestLength in interface jxta.security.hash.Hash
reset
public void reset()
- Specified by:
- reset in interface jxta.security.hash.Hash
clone
public java.lang.Object clone()
- Return a MD5 clone of this object's state
- Specified by:
- clone in interface jxta.security.hash.Hash
- Overrides:
- clone in class java.lang.Object
update
public void update(byte[] input,
int offset,
int len)
- Specified by:
- update in interface jxta.security.hash.Hash
doFinal
public int doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
- Digest the final buffer. Must be called for last buffer
of data to be digested.
- Specified by:
- doFinal in interface jxta.security.hash.Hash