Class PasswordInputValidator
java.lang.Object
com.svenruppert.jsentinel.credential.input.PasswordInputValidator
Checks password input against the
PasswordInputPolicy.
Validation runs before any KDF call so cheap structural problems never trigger expensive hashing (CWE-20 / CWE-400).
The validator works in two modes:
validate(SecretValue, PasswordInputPolicy)for the SecretValue path (recommended);validate(char[], PasswordInputPolicy)for the legacy char[] path — the array is not zeroed; the caller retains ownership.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate(char[] chars, PasswordInputPolicy policy) validate(SecretValue secret, PasswordInputPolicy policy)
-
Constructor Details
-
PasswordInputValidator
public PasswordInputValidator()
-
-
Method Details
-
validate
-
validate
-