public class SHA1 extends Checksum
| Constructor and Description |
|---|
SHA1() |
| Modifier and Type | Method and Description |
|---|---|
static CharacterBuffer |
convertToHex(byte[] data) |
byte[] |
getByteArray()
Returns the result of the computation as byte array.
|
int |
getOrder() |
void |
reset()
Resets the checksum to its initial value for further use.
|
static byte[] |
toByteArray(java.lang.CharSequence charSequence) |
boolean |
update(byte b)
Updates the checksum with the specified byte.
|
void |
update(byte[] bytes,
int offset,
int length)
Updates the current checksum with the specified array of bytes.
|
static CharacterBuffer |
value(java.lang.CharSequence value) |
public void reset()
Checksumpublic void update(byte[] bytes,
int offset,
int length)
Checksumpublic boolean update(byte b)
Checksumpublic byte[] getByteArray()
ChecksumgetByteArray in class Checksumpublic static CharacterBuffer value(java.lang.CharSequence value)
public static CharacterBuffer convertToHex(byte[] data)
public static byte[] toByteArray(java.lang.CharSequence charSequence)