|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.PasswordValidator
public class PasswordValidator
The central component for evaluating multiple password rules against a candidate password.
| Constructor Summary | |
|---|---|
PasswordValidator(List<Rule> rules)
Creates a new password validator with the default message resolver. |
|
PasswordValidator(MessageResolver resolver,
List<Rule> rules)
Creates a new password validator. |
|
| Method Summary | |
|---|---|
List<String> |
getMessages(RuleResult result)
Returns a list of human-readable messages by iterating over the details in a failed rule result. |
String |
toString()
Returns a string representation of this object. |
RuleResult |
validate(PasswordData passwordData)
Validates the supplied password data against the rules in this validator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordValidator(List<Rule> rules)
rules - to validate
public PasswordValidator(MessageResolver resolver,
List<Rule> rules)
resolver - message resolver.rules - to validate| Method Detail |
|---|
public RuleResult validate(PasswordData passwordData)
passwordData - to validate
public List<String> getMessages(RuleResult result)
result - failed rule result.
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||