private static final class MessageDigestHashFunction.MessageDigestHasher extends AbstractByteHasher
| Modifier and Type | Field and Description |
|---|---|
private int |
bytes |
private java.security.MessageDigest |
digest |
private boolean |
done |
| Modifier | Constructor and Description |
|---|---|
private |
MessageDigestHasher(java.security.MessageDigest digest,
int bytes) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkNotDone() |
HashCode |
hash()
Computes a hash code based on the data that have been provided to this hasher.
|
protected void |
update(byte b)
Updates this hasher with the given byte.
|
protected void |
update(byte[] b,
int off,
int len)
Updates this hasher with
len bytes starting at off in the given buffer. |
protected void |
update(java.nio.ByteBuffer bytes)
Updates this hasher with bytes from the given buffer.
|
putByte, putBytes, putBytes, putBytes, putChar, putInt, putLong, putShort, updateputBoolean, putDouble, putFloat, putObject, putString, putUnencodedCharsprivate final java.security.MessageDigest digest
private final int bytes
private boolean done
private MessageDigestHasher(java.security.MessageDigest digest,
int bytes)
protected void update(byte b)
AbstractByteHasherupdate in class AbstractByteHasherprotected void update(byte[] b,
int off,
int len)
AbstractByteHasherlen bytes starting at off in the given buffer.update in class AbstractByteHasherprotected void update(java.nio.ByteBuffer bytes)
AbstractByteHasherupdate in class AbstractByteHasherprivate void checkNotDone()