Name
SHA1Hash
Synopsis
This class
uses the SHA-1 algorithm to implement hashes. Instances of this class
are returned from the JxtaCryptoSuite
object when
the suite’s profile contains
JxtaCrypto.MEMBER_SHA1
. This class is not commonly
used by the JXTA programmer.
public class SHA1Hash implements jxta.security.hash.Hash { // Public Constructors public SHA1Hash(); // Methods Implementing Hash public Object clone(); public int doFinal(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff); public byte getAlgorithm(); // default:1 public byte getDigestLength(); // default:20 public void reset(); public void update(byte[ ] buf, int off, int len); // Methods Implementing Description public void clearDebug(); public String getAlgorithmName(); // default:"SHA-1 Hash” public void setDebug(); // Public Instance Fields public final byte SHA1DigestLength; // =20 }
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.