|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.util.SHA1Verify
SHA1Verify is the class which stores a list of SHA1Hashes which sould be serially concatenated and hashed to produce a GUID or other verifier.
Field Summary | |
protected SHA1Hash[] |
_hashes
This is the array of SHA1Hashes |
static int |
TYPE_CODE
|
Constructor Summary | |
SHA1Verify()
Default constructor |
|
SHA1Verify(byte[] data,
int[] offset)
Read the bytes of the value of this verifier in from the input byte array |
|
SHA1Verify(int size)
Initializing constructor |
Method Summary | |
void |
add_to_digest(SecureHashBuffer buffer)
Specified by ostore.util.Digestible |
Object |
clone()
Create a new SHA1Verify with the values of this one |
SHA1Hash[] |
getArray()
This routine returns the array of hashes |
SHA1Hash |
getHash(int i)
Get the i^th hash in this verifier |
int |
length()
Return the length of the verification array |
void |
setHash(int i,
SHA1Hash hash)
Set the i^th hash in this verifier |
void |
to_bytes(byte[] data,
int[] offset)
Write the bytes of this verifier to the input byte array |
int |
type_code()
Deprecated. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_CODE
protected SHA1Hash[] _hashes
Constructor Detail |
public SHA1Verify()
public SHA1Verify(byte[] data, int[] offset)
array
- out of which to read the bytes of this verifieroffset
- in data at which to begin readingpublic SHA1Verify(int size)
size
- is the number of hashes to store in this verifierMethod Detail |
public SHA1Hash getHash(int i)
i
- the index of the hash to getpublic void setHash(int i, SHA1Hash hash)
i
- the index of the hash to sethash
- the value of the hashpublic SHA1Hash[] getArray()
public int length()
public Object clone() throws CloneNotSupportedException
clone
in class Object
verify
- the preexisting value of a SHA1Verifypublic void to_bytes(byte[] data, int[] offset)
to_bytes
in interface QuickSerializable
array
- into which to write the bytes of this verifieroffset
- in data at which to begin writingpublic void add_to_digest(SecureHashBuffer buffer)
add_to_digest
in interface Digestible
ostore.util.Digestible
SecureHashBuffer.add( byte )
,
SecureHashBuffer.add( byte[] )
,
SecureHashBuffer.add( byte[], int, int )
,
SecureHashBuffer.add( Digestible )
public int type_code()
type_code
in interface QuickSerializable
ostore.util.QuickSerializable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |