| Package | Description |
|---|---|
| org.apache.nifi.security.util.crypto |
| Modifier and Type | Method and Description |
|---|---|
static HashAlgorithm |
HashAlgorithm.fromName(String algorithmName) |
static HashAlgorithm |
HashAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgorithm[] |
HashAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
HashService.blake2Hash(HashAlgorithm algorithm,
byte[] value) |
private static byte[] |
HashService.blake2HashStreaming(HashAlgorithm algorithm,
InputStream value) |
static String |
HashService.hashValue(HashAlgorithm algorithm,
String value)
Returns the hex-encoded hash of the specified value.
|
static String |
HashService.hashValue(HashAlgorithm algorithm,
String value,
Charset charset)
Returns the hex-encoded hash of the specified value.
|
static byte[] |
HashService.hashValueRaw(HashAlgorithm algorithm,
byte[] value)
Returns the raw
byte[] hash of the specified value. |
static byte[] |
HashService.hashValueRaw(HashAlgorithm algorithm,
String value)
Returns the raw
byte[] hash of the specified value. |
static byte[] |
HashService.hashValueRaw(HashAlgorithm algorithm,
String value,
Charset charset)
Returns the raw
byte[] hash of the specified value. |
static String |
HashService.hashValueStreaming(HashAlgorithm algorithm,
InputStream value)
Returns the hash of the specified value.
|
private static byte[] |
HashService.traditionalHash(HashAlgorithm algorithm,
byte[] value) |
private static byte[] |
HashService.traditionalHashStreaming(HashAlgorithm algorithm,
InputStream value) |
Copyright © 2022 Apache NiFi Project. All rights reserved.