|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.AbstractCharacterRule
edu.vt.middleware.password.DigitCharacterRule
public class DigitCharacterRule
Rule for determining if a password contains the correct number of digit characters.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.password.AbstractCharacterRule |
|---|
ERROR_CODE, numCharacters |
| Constructor Summary | |
|---|---|
DigitCharacterRule()
Default constructor. |
|
DigitCharacterRule(int num)
Create a new digit character rule. |
|
| Method Summary | |
|---|---|
protected String |
getCharacterType()
Returns the type of character managed by this rule. |
protected int |
getNumberOfCharacterType(Password password)
Returns the number of the type of characters in the supplied password for the implementing class. |
String |
getValidCharacters()
Returns the characters that are considered valid for this rule. |
| Methods inherited from class edu.vt.middleware.password.AbstractCharacterRule |
|---|
createRuleResultDetailParameters, getNumberOfCharacters, setNumberOfCharacters, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DigitCharacterRule()
public DigitCharacterRule(int num)
num - of digit characters to enforce| Method Detail |
|---|
public String getValidCharacters()
protected int getNumberOfCharacterType(Password password)
getNumberOfCharacterType in class AbstractCharacterRulepassword - to get character count from
protected String getCharacterType()
getCharacterType in class AbstractCharacterRule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||