| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if this digest algorithm is supportedThe digest algorithm - never algorithm)null/empty
|
| public static < The generic type of digest factory D extends Digest> D | Returns: The firstDigestFactory whose algorithm matches the required one according to the
comparator - null if no match foundThe required algorithm name - ignored if algo, Comparator<? super String> null/emptyThe comp, Collection<? extends D> Comparator to use to compare algorithm namesThe factories to check - ignored if digests)null/empty
|
| public static < The generic type of digest factory F extends DigestFactory> F | Returns: The firstDigestFactory whose algorithm matches the required one according to the
comparator - null if no match foundThe required algorithm name - ignored if algo, Comparator<? super String> null/emptyThe comp, Collection<? extends F> Comparator to use to compare algorithm namesThe factories to check - ignored if factories)null/empty
|
| public static String | |
| public static String | |
| public static String | Returns: The fingerprint -null if null/empty inputThe d, String Digest to useThe s)String to digest - ignored if null/empty, otherwise its UTF-8
representation is used as input for the fingerprint
|
| public static String | |
| public static String | Returns: The fingerprint -null if empty data bufferThe data buffer to be fingerprint-ed buf)
|
| public static String | Returns: The fingerprint -null if non-positive lengthThe data buffer to be fingerprint-ed buf, int The offset of the data in the buffer offset, int The length of data - ignored if non-positive len)
|
| public static String | Returns: The fingerprint -null if empty data bufferThe d, byte... Digest to useThe data buffer to be fingerprint-ed buf)
|
| public static String | Returns: The fingerprint -null if non-positive lengthThe d, byte[] Digest to useThe data buffer to be fingerprint-ed buf, int The offset of the data in the buffer offset, int The length of data - ignored if non-positive len)
|
| public static byte[] | |
| public static byte[] |
| DigestUtils | back to summary |
|---|---|
| private DigestUtils() | |
| checkSupported | back to summary |
|---|---|
public static boolean checkSupported(String algorithm)
| |
| findDigestByAlgorithm | back to summary |
|---|---|
public static <D extends Digest> D findDigestByAlgorithm(String algo, Comparator<? super String> comp, Collection<? extends D> digests)
| |
| findFactoryByAlgorithm | back to summary |
|---|---|
public static <F extends DigestFactory> F findFactoryByAlgorithm(String algo, Comparator<? super String> comp, Collection<? extends F> factories)
| |
| getFingerPrint | back to summary |
|---|---|
public static String getFingerPrint(Factory<? extends Digest> f, String s) throws Exception
| |
| getFingerPrint | back to summary |
|---|---|
| public static String getFingerPrint(Factory<? extends Digest> f, String s, Charset charset) throws Exception | |
| getFingerPrint | back to summary |
|---|---|
public static String getFingerPrint(Digest d, String s) throws Exception
| |
| getFingerPrint | back to summary |
|---|---|
| public static String getFingerPrint(Digest d, String s, Charset charset) throws Exception | |
| getFingerPrint | back to summary |
|---|---|
| public static String getFingerPrint(Factory<? extends Digest> f, byte... buf) throws Exception | |
| getFingerPrint | back to summary |
|---|---|
| public static String getFingerPrint(Factory<? extends Digest> f, byte[] buf, int offset, int len) throws Exception | |
| getFingerPrint | back to summary |
|---|---|
public static String getFingerPrint(Digest d, byte... buf) throws Exception
| |
| getFingerPrint | back to summary |
|---|---|
public static String getFingerPrint(Digest d, byte[] buf, int offset, int len) throws Exception
| |
| getRawFingerprint | back to summary |
|---|---|
| public static byte[] getRawFingerprint(Digest d, byte... buf) throws Exception | |
| getRawFingerprint | back to summary |
|---|---|
| public static byte[] getRawFingerprint(Digest d, byte[] buf, int offset, int len) throws Exception | |