|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.UsernameRule
public class UsernameRule
UsernameRule contains methods for determining if a password
contains the username associated with that password.
| Constructor Summary | |
|---|---|
UsernameRule()
This creates a new UsernameRule. |
|
UsernameRule(boolean mb,
boolean ic)
This will create a new UsernameRule with the supplied
matchBackwards and ignoreCase settings. |
|
| Method Summary | |
|---|---|
boolean |
isIgnoreCase()
Get the value of the ignoreCase property. |
boolean |
isMatchBackwards()
Get the value of the matchBackwards property. |
void |
setIgnoreCase(boolean b)
This causes the verify method to ignore case when searching the for a username. |
void |
setMatchBackwards(boolean b)
This causes the verify method to search the password for the username spelled backwards as well as forwards. |
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 |
| Constructor Detail |
|---|
public UsernameRule()
UsernameRule.
public UsernameRule(boolean mb,
boolean ic)
UsernameRule with the supplied
matchBackwards and ignoreCase settings.
mb - boolean whether to match backwardsic - boolean whether to ignore case| Method Detail |
|---|
public void setMatchBackwards(boolean b)
b - booleanpublic boolean isMatchBackwards()
booleanpublic void setIgnoreCase(boolean b)
b - booleanpublic boolean isIgnoreCase()
booleanpublic RuleResult validate(PasswordData passwordData)
validate in interface RulepasswordData - PasswordData to verify (not null).
RuleResult - details on password verificationpublic 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 | ||||||||