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.
|
IMessageDigestGenerator |
update(String aValue,
String sCharset)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmName, getDigest, getDigest, getDigestLength, reset, update, update@Nonnull @Deprecated public final IMessageDigestGenerator update(@Nonnull String aValue, @Nonnull@Nonempty String sCharset)
IMessageDigestGeneratorIMessageDigestGenerator.getDigest() once, no further update is possible.update in interface IMessageDigestGeneratoraValue - The string value to update the hash. May not be null.sCharset - The charset to be used for extraction of the bytes. May not be
null.@Nonnull public final IMessageDigestGenerator update(@Nonnull String aValue, @Nonnull Charset aCharset)
IMessageDigestGeneratorIMessageDigestGenerator.getDigest() 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.getDigest() 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.getDigest() internally so no further update is possible after this
method is called.getDigestLong in interface IMessageDigestGenerator@Nonnull public final String getDigestHexString()
IMessageDigestGeneratorIMessageDigestGenerator.getDigest() internally so no further update is possible after this
method is called.getDigestHexString in interface IMessageDigestGeneratornull.Copyright © 2006–2015 phloc systems. All rights reserved.