jxta.security.impl.hash
Class SHA1Hash
java.lang.Object
|
+--jxta.security.impl.hash.SHA1Hash
- public class SHA1Hash
- extends java.lang.Object
- implements jxta.security.hash.Hash
Fields inherited from interface jxta.security.hash.Hash |
ALG_MD5,
ALG_NULL,
ALG_SHA1,
name |
Constructor Summary |
SHA1Hash()
Constructor |
Method Summary |
void |
clearDebug()
turn off debugging |
java.lang.Object |
clone()
Clone "this" |
int |
doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
If only one buffer is to be digested, then call doFinal
only. |
byte |
getAlgorithm()
Algorithm type |
java.lang.String |
getAlgorithmName()
Algorithm name |
byte |
getDigestLength()
Digest length |
void |
reset()
Reset the calculation |
void |
setDebug()
turn on debugging |
void |
update(byte[] buf,
int off,
int len)
Call update for all but the last buffer of data
to be digested. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SHA1DigestLength
public final byte SHA1DigestLength
SHA1Hash
public SHA1Hash()
- Constructor
getAlgorithmName
public java.lang.String getAlgorithmName()
- Algorithm name
setDebug
public void setDebug()
- turn on debugging
clearDebug
public void clearDebug()
- turn off debugging
getAlgorithm
public byte getAlgorithm()
- Algorithm type
- Specified by:
- getAlgorithm in interface jxta.security.hash.Hash
getDigestLength
public byte getDigestLength()
- Digest length
- Specified by:
- getDigestLength in interface jxta.security.hash.Hash
reset
public void reset()
- Reset the calculation
- Specified by:
- reset in interface jxta.security.hash.Hash
clone
public java.lang.Object clone()
- Clone "this"
- Specified by:
- clone in interface jxta.security.hash.Hash
- Overrides:
- clone in class java.lang.Object
update
public void update(byte[] buf,
int off,
int len)
- Call update for all but the last buffer of data
to be digested.
Call doFinal() for the last buffer of data
- Specified by:
- update in interface jxta.security.hash.Hash
doFinal
public int doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
- If only one buffer is to be digested, then call doFinal
only.
- Specified by:
- doFinal in interface jxta.security.hash.Hash