|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.RegexRule
public class RegexRule
RegexRule contains methods for testing a regular expression to
determine if a password is valid.
| Field Summary | |
|---|---|
protected java.util.regex.Pattern |
pattern
Regex pattern. |
| Constructor Summary | |
|---|---|
RegexRule(java.lang.String regex)
This creates a new RegexRule with the supplied regular
expression. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getRuleResultDetail(java.util.regex.Matcher m)
Returns the message to set on the rule result detail. |
java.lang.String |
toString()
This returns a string representation of this object. |
RuleResult |
validate(PasswordData passwordData)
This returns whether or not the supplied password data meets the requirements of this rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.regex.Pattern pattern
| Constructor Detail |
|---|
public RegexRule(java.lang.String regex)
RegexRule with the supplied regular
expression.
regex - String regular expression| Method Detail |
|---|
public RuleResult validate(PasswordData passwordData)
validate in interface RulepasswordData - PasswordData to verify (not null).
RuleResult - details on password verificationprotected java.lang.String getRuleResultDetail(java.util.regex.Matcher m)
m - Matcher that found a match
String result detailpublic java.lang.String toString()
toString in class java.lang.ObjectString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||