Class Pbkdf2ParameterValidator
java.lang.Object
com.svenruppert.jsentinel.credential.password.pbkdf2.Pbkdf2ParameterValidator
- All Implemented Interfaces:
PasswordHashParameterValidator
public final class Pbkdf2ParameterValidator
extends Object
implements PasswordHashParameterValidator
Parameter validator for the Phase-1a PBKDF2 algorithm.
Validates iteration count, derived-key length and the base64 salt carried in the envelope. All numeric parameters are bounded by the active policy; this is the gate that prevents resource exhaustion before any KDF runs (CWE-400 / CWE-916).
The validator does not derive any key material; it only decodes the salt to verify the encoded length.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlgorithm identifier this validator handles, matched verbatim against thealgfield of the envelope.voidValidates the supplied parameter map against the active policy bounds.
-
Constructor Details
-
Pbkdf2ParameterValidator
public Pbkdf2ParameterValidator()
-
-
Method Details
-
algorithm
Description copied from interface:PasswordHashParameterValidatorAlgorithm identifier this validator handles, matched verbatim against thealgfield of the envelope.- Specified by:
algorithmin interfacePasswordHashParameterValidator
-
validate
public void validate(Map<String, String> parameters, Map<String, String> minimum, Map<String, String> maximum) Description copied from interface:PasswordHashParameterValidatorValidates the supplied parameter map against the active policy bounds.- Specified by:
validatein interfacePasswordHashParameterValidator- Parameters:
parameters- parameters as parsed from the envelopeminimum- lower bound from the active policymaximum- upper bound from the active policy
-