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()
PasswordPolicyResult
isValid
in interface PasswordPolicyResult
true
if all rules passed, false
if at
least one rule was violated.public List<PasswordPolicyRule> getViolatedRules()
PasswordPolicyResult
getViolatedRules
in interface PasswordPolicyResult
public void setViolatedRules(List<PasswordPolicyRule> violatedRules)
public List<PasswordPolicyRule> getFulfilledRules()
PasswordPolicyResult
getFulfilledRules
in interface PasswordPolicyResult
public void setFulfilledRules(List<PasswordPolicyRule> fulfilledRules)
Copyright © 2021. All rights reserved.