September 2002
Intermediate to advanced
416 pages
14h 46m
English
NullHash
This class performs no hashing at all;
its calculated digest is always empty. Instances of this class are
returned from the JxtaCryptoSuite object when no
hash member was specified in the profile. This class is not commonly
used by the JXTA programmer.
public class NullHash implements jxta.security.hash.Hash { // Public Constructors public NullHash(); // Methods Implementing Hash public Object clone(); public int doFinal(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff); // constant public byte getAlgorithm(); // constant default:0 public byte getDigestLength(); // constant default:0 public void reset(); // empty public void update(byte[ ] buf, int off, int len); // empty // Methods Implementing Description public void clearDebug(); public String getAlgorithmName(); // default:"nullHash” public void setDebug(); }
Read now
Unlock full access