@Immutable public final class MessageDigestGeneratorHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getDigest(byte[] aContent,
EMessageDigestAlgorithm... aAlgorithms) |
static byte[] |
getDigest(byte[] aContent,
int nOfs,
int nLength,
EMessageDigestAlgorithm... aAlgorithms) |
static byte[] |
getDigest(EMessageDigestAlgorithm eAlgorithm,
byte[] aBytes) |
static byte[] |
getDigest(EMessageDigestAlgorithm eAlgorithm,
byte[] aBytes,
int nOfs,
int nLength) |
static byte[] |
getDigest(EMessageDigestAlgorithm eAlgorithm,
String sText,
Charset aCharset) |
static byte[] |
getDigest(EMessageDigestAlgorithm eAlgorithm,
String sText,
String sCharset)
Deprecated.
|
static byte[] |
getDigest(String sContent,
Charset aCharset,
EMessageDigestAlgorithm... aAlgorithms) |
static byte[] |
getDigest(String sContent,
String sCharset,
EMessageDigestAlgorithm... aAlgorithms)
Deprecated.
|
static byte[] |
getDigestFromInputStream(InputStream aIS,
EMessageDigestAlgorithm... aAlgorithms)
Create a hash value from the complete input stream.
|
static String |
getHexValueFromDigest(byte[] aDigest) |
static long |
getLongFromDigest(byte[] aDigest) |
public static long getLongFromDigest(@Nonnull byte[] aDigest)
@Nonnull @Deprecated public static byte[] getDigest(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull String sText, @Nonnull@Nonempty String sCharset)
@Nonnull public static byte[] getDigest(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull String sText, @Nonnull Charset aCharset)
@Nonnull public static byte[] getDigest(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull byte[] aBytes)
@Nonnull public static byte[] getDigest(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull byte[] aBytes, @Nonnegative int nOfs, @Nonnegative int nLength)
@Nonnull @Deprecated public static byte[] getDigest(@Nonnull String sContent, @Nonnull@Nonempty String sCharset, @Nonnull@Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull public static byte[] getDigest(@Nonnull String sContent, @Nonnull Charset aCharset, @Nonnull@Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull public static byte[] getDigest(@Nonnull byte[] aContent, @Nonnull@Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull public static byte[] getDigest(@Nonnull byte[] aContent, @Nonnegative int nOfs, @Nonnegative int nLength, @Nonnull@Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull public static byte[] getDigestFromInputStream(@Nonnull@WillClose InputStream aIS, @Nonnull@Nonempty EMessageDigestAlgorithm... aAlgorithms)
aIS - The input stream to create the hash value from. May not be
null.aAlgorithms - The list of algorithms to choose the first one from. May neither be
null nor empty.null message digest byte arrayCopyright © 2006–2015 phloc systems. All rights reserved.