public abstract class AbstractMessageDigestGenerator extends Object implements IMessageDigestGenerator
HashCodeGenerator which is used to
generate hash values for Java objects.DEFAULT_ALGORITHM| Constructor and Description |
|---|
AbstractMessageDigestGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDigestHexString()
This method converts the current hash digest to a hex string.
|
long |
getDigestLong()
This method finalizes the hash generation and creates the index.
|
IMessageDigestGenerator |
update(byte[] aValue)
Update the hash with the given byte array.
|
IMessageDigestGenerator |
update(String aValue,
Charset aCharset)
Update the hash with the bytes of the given string in the given charset.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmName, getAllDigestBytes, getAllDigestBytes, getDigestLength, getSecurityProvider, reset, update, update@Nonnull public final IMessageDigestGenerator update(@Nonnull String aValue, @Nonnull Charset aCharset)
IMessageDigestGeneratorIMessageDigestGenerator.getAllDigestBytes() once, no further update is
possible.update in interface IMessageDigestGeneratoraValue - The string value to update the hash. May not be null.aCharset - The charset to be used for extraction of the bytes. May not be
null.@Nonnull public final IMessageDigestGenerator update(@Nonnull byte[] aValue)
IMessageDigestGeneratorIMessageDigestGenerator.getAllDigestBytes() once, no further update is possible.update in interface IMessageDigestGeneratoraValue - The byte array to update the hash. May not be null.public final long getDigestLong()
IMessageDigestGeneratorIMessageDigestGenerator.getAllDigestBytes() internally so no further update is possible
after this method is called.getDigestLong in interface IMessageDigestGenerator@Nonnull public final String getDigestHexString()
IMessageDigestGeneratorIMessageDigestGenerator.getAllDigestBytes() internally so no further update is possible
after this method is called.getDigestHexString in interface IMessageDigestGeneratornull.Copyright © 2014–2015 Philip Helger. All rights reserved.