September 2002
Intermediate to advanced
416 pages
14h 46m
English
MD5Hash
This class uses the MD5 algorithm to
implement hashes. Instances of this class are returned from the
JxtaCryptoSuite object when the suite has been
constructed with a profile that contains
JxtaCrypto.MEMBER_MD5. Note that if the profile
contains both MD5 and SHA-1 hashes, the getJxtaHash( ) method will return the SHA-1 hash. This class is not
usually used directly.
public class MD5Hash implements jxta.security.hash.Hash { // Public Constructors public MD5Hash(); // Methods Implementing Hash public Object clone(); public int doFinal(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff); public byte getAlgorithm(); // default:2 public byte getDigestLength(); // default:16 public void reset(); public void update(byte[ ] input, int offset, int len); // Methods Implementing Description public void clearDebug(); public String getAlgorithmName(); // default:"MD5 Hash” public void setDebug(); }
Read now
Unlock full access