public class DigestComparer
extends java.lang.Object
Constructor and Description |
---|
DigestComparer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareDigests(byte[] digest1,
byte[] digest2)
Compares two digests.
|
static boolean |
compareDigests(java.io.InputStream digest1Stream,
byte[] digest2)
Compares a digest from an
InputStream with a digest array. |
public static boolean compareDigests(byte[] digest1, byte[] digest2)
digest1
- The first digest array.digest2
- The second digest array.public static boolean compareDigests(java.io.InputStream digest1Stream, byte[] digest2) throws java.io.IOException
InputStream
with a digest array.digest1Stream
- The input stream digest.digest2
- The digest array.java.io.IOException
- An I/O Exception has occurred.