public class PasswordPolicyResultImpl extends Object implements PasswordPolicyResult
| Modifier and Type | Field and Description |
|---|---|
protected List<PasswordPolicyRule> |
fulfilledRules |
protected List<PasswordPolicyRule> |
violatedRules |
| Constructor and Description |
|---|
PasswordPolicyResultImpl(List<PasswordPolicyRule> violatedRules,
List<PasswordPolicyRule> fulfilledRules) |
| Modifier and Type | Method and Description |
|---|---|
List<PasswordPolicyRule> |
getFulfilledRules()
List of all rules that were fulfilled during the check.
|
List<PasswordPolicyRule> |
getViolatedRules()
List of all rules that were violated during the check.
|
boolean |
isValid()
Indicator of the overall result of the check.
|
void |
setFulfilledRules(List<PasswordPolicyRule> fulfilledRules) |
void |
setViolatedRules(List<PasswordPolicyRule> violatedRules) |
protected List<PasswordPolicyRule> violatedRules
protected List<PasswordPolicyRule> fulfilledRules
public PasswordPolicyResultImpl(List<PasswordPolicyRule> violatedRules, List<PasswordPolicyRule> fulfilledRules)
public boolean isValid()
PasswordPolicyResultisValid in interface PasswordPolicyResulttrue if all rules passed, false if at
least one rule was violated.public List<PasswordPolicyRule> getViolatedRules()
PasswordPolicyResultgetViolatedRules in interface PasswordPolicyResultpublic void setViolatedRules(List<PasswordPolicyRule> violatedRules)
public List<PasswordPolicyRule> getFulfilledRules()
PasswordPolicyResultgetFulfilledRules in interface PasswordPolicyResultpublic void setFulfilledRules(List<PasswordPolicyRule> fulfilledRules)
Copyright © 2021. All rights reserved.