|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.compoze.collab.util.Sha1
public class Sha1
This class is a port of the SHA-1 algorithm included with Mozilla.
| Constructor Summary | |
|---|---|
Sha1()
Constructor. |
|
| Method Summary | |
|---|---|
byte[] |
digest()
Complete the hash and get the final digest (resets internal state). |
static void |
main(String[] args)
Main. |
void |
reset()
Resets the internal state to its initial values. |
void |
setBitCount(long lCount)
Forces the bit count to be set to a particular value (should not use). |
void |
update(byte[] bytes)
Adds more data to the hash. |
void |
update(byte[] bytes,
int iOffset,
int iLen)
Adds more data to the hash. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sha1()
| Method Detail |
|---|
public void reset()
public void update(byte[] bytes)
bytes - the data to add (not null)
public void update(byte[] bytes,
int iOffset,
int iLen)
bytes - the data to add (not null)iOffset - the offset into the dataiLen - the length of the datapublic byte[] digest()
public void setBitCount(long lCount)
lCount - the new bit count
public static void main(String[] args)
throws Throwable
Throwable
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||