|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.CharacterCharacteristicsRule
public class CharacterCharacteristicsRule
CharacterCharacteristicsRule contains methods for determining if
a password contains the desired mix of character types. In order to meet the
criteria of this rule, passwords must meet any number of supplied character
rules.
| Constructor Summary | |
|---|---|
CharacterCharacteristicsRule()
|
|
| Method Summary | |
|---|---|
int |
getNumberOfCharacteristics()
This returns the number of characteristics which currently must be satisfied in order for a password to meet the requirements of this rule. |
java.util.List<CharacterRule> |
getRules()
This will return the rules being used by this
CharacterCharacteristicsRule. |
void |
setNumberOfCharacteristics(int n)
This sets the number of characteristics which must be satisfied in order for a password to meet the requirements of this rule. |
void |
setRules(java.util.List<CharacterRule> l)
This will set the rules to be used by this
CharacterCharacteristicsRule. |
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 CharacterCharacteristicsRule()
| Method Detail |
|---|
public java.util.List<CharacterRule> getRules()
CharacterCharacteristicsRule.
List of rulespublic void setRules(java.util.List<CharacterRule> l)
CharacterCharacteristicsRule.
l - List of rulespublic void setNumberOfCharacteristics(int n)
n - int number of characteristics to enforce where n >
0public int getNumberOfCharacteristics()
int number of characteristics to enforcepublic 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 | ||||||||