public class SecureHasherFactory extends Object
Provides a factory for SecureHasher implementations. Will return Argon2 by default if no algorithm parameter is given. Algorithm parameter should align with the below registered secure hasher names (PBKDF2, BCRYPT, SCRYPT, ARGON2).
| Modifier and Type | Field and Description |
|---|---|
private static Class<? extends SecureHasher> |
DEFAULT_SECURE_HASHER_CLASS |
private static org.slf4j.Logger |
LOGGER |
private static Map<KeyDerivationFunction,Class<? extends SecureHasher>> |
registeredSecureHashers |
| Constructor and Description |
|---|
SecureHasherFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SecureHasher |
getSecureHasher(String algorithm) |
private static final org.slf4j.Logger LOGGER
private static Map<KeyDerivationFunction,Class<? extends SecureHasher>> registeredSecureHashers
private static final Class<? extends SecureHasher> DEFAULT_SECURE_HASHER_CLASS
public static SecureHasher getSecureHasher(String algorithm)
Copyright © 2022 Apache NiFi Project. All rights reserved.