Name

MD5Hash

Synopsis

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();  
}

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.