public class DigestSourceRule extends SourceRule
PasswordData.setPasswordReferences(org.passay.PasswordData.Reference...)ERROR_CODE, reportAllFailures| Constructor and Description |
|---|
DigestSourceRule(org.cryptacular.bean.HashBean<String> bean)
Creates new digest source rule which operates on password references with the supplied label.
|
| 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, validatepublic DigestSourceRule(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 SourceRulepassword - candidate clear text password.reference - reference digested password.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.