public final class MessageDigestUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
BUFFER_LENGTH |
private static String |
DIGEST_ALGORITHM |
private static int |
START_READ_INDEX |
private static int |
STREAM_END_INDEX |
Modifier | Constructor and Description |
---|---|
private |
MessageDigestUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getDigest(byte[] bytes)
Get Digest using standard algorithm
|
static byte[] |
getDigest(InputStream inputStream)
Get Digest using standard algorithm
|
private static MessageDigest |
getMessageDigest() |
private static final String DIGEST_ALGORITHM
private static final int BUFFER_LENGTH
private static final int START_READ_INDEX
private static final int STREAM_END_INDEX
public static byte[] getDigest(byte[] bytes)
bytes
- Bytes to be digestedpublic static byte[] getDigest(InputStream inputStream) throws IOException
inputStream
- Input Stream to be read and digestedIOException
- Thrown on InputStream.read()private static MessageDigest getMessageDigest()
Copyright © 2022 Apache NiFi Project. All rights reserved.