@Immutable public final class MessageDigestGeneratorHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getAllDigestBytes(byte[] aContent,
EMessageDigestAlgorithm... aAlgorithms) |
static byte[] |
getAllDigestBytes(byte[] aContent,
int nOfs,
int nLength,
EMessageDigestAlgorithm... aAlgorithms) |
static byte[] |
getAllDigestBytes(byte[] aContent,
int nOfs,
int nLength,
NonBlockingMessageDigestGenerator aMDGen) |
static byte[] |
getAllDigestBytes(byte[] aContent,
NonBlockingMessageDigestGenerator aMDGen) |
static byte[] |
getAllDigestBytes(EMessageDigestAlgorithm eAlgorithm,
byte[] aBytes) |
static byte[] |
getAllDigestBytes(EMessageDigestAlgorithm eAlgorithm,
byte[] aBytes,
int nOfs,
int nLength) |
static byte[] |
getAllDigestBytes(EMessageDigestAlgorithm eAlgorithm,
String sText,
Charset aCharset) |
static byte[] |
getAllDigestBytes(String sContent,
Charset aCharset,
EMessageDigestAlgorithm... aAlgorithms) |
static byte[] |
getAllDigestBytesFromInputStream(InputStream aIS,
EMessageDigestAlgorithm... aAlgorithms)
Create a hash value from the complete input stream.
|
static byte[] |
getAllDigestBytesFromInputStream(InputStream aIS,
NonBlockingMessageDigestGenerator aMDGen)
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 @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull String sText, @Nonnull Charset aCharset)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull byte[] aBytes)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull EMessageDigestAlgorithm eAlgorithm, @Nonnull byte[] aBytes, @Nonnegative int nOfs, @Nonnegative int nLength)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull String sContent, @Nonnull Charset aCharset, @Nonnull @Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull byte[] aContent, @Nonnull @Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull byte[] aContent, @Nonnull NonBlockingMessageDigestGenerator aMDGen)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull byte[] aContent, @Nonnegative int nOfs, @Nonnegative int nLength, @Nonnull @Nonempty EMessageDigestAlgorithm... aAlgorithms)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytes(@Nonnull byte[] aContent, @Nonnegative int nOfs, @Nonnegative int nLength, @Nonnull NonBlockingMessageDigestGenerator aMDGen)
@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytesFromInputStream(@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 array@Nonnull @ReturnsMutableCopy public static byte[] getAllDigestBytesFromInputStream(@Nonnull @WillClose InputStream aIS, @Nonnull NonBlockingMessageDigestGenerator aMDGen)
aIS - The input stream to create the hash value from. May not be
null.aMDGen - The generator to be used. May not be null.null message digest byte arrayCopyright © 2014–2016 Philip Helger. All rights reserved.