public class DigestHistoryRule extends HistoryRule
PasswordData.setPasswordReferences(org.passay.PasswordData.Reference...)
.ERROR_CODE, reportAllFailures
Constructor and Description |
---|
DigestHistoryRule(org.cryptacular.bean.HashBean<String> bean)
Creates new digest history rule which operates on password references that were digested with the supplied hash.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(String password,
PasswordData.Reference reference)
Determines whether a digested password matches a reference value.
|
void |
setCharset(Charset set)
Sets the character set to use for undigested passwords.
|
createRuleResultDetailParameters, validate
public DigestHistoryRule(org.cryptacular.bean.HashBean<String> bean)
bean
- encoding hash beanpublic void setCharset(Charset set)
set
- to use for undigested passwordsprotected boolean matches(String password, PasswordData.Reference reference)
matches
in class HistoryRule
password
- candidate clear text password.reference
- reference digested password.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.