|
|||||||||
| 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
Rule 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.
| Field Summary | |
|---|---|
static String |
ERROR_CODE
Error code for insufficient number of characteristics. |
| Constructor Summary | |
|---|---|
CharacterCharacteristicsRule()
|
|
| Method Summary | |
|---|---|
protected Map<String,?> |
createRuleResultDetailParameters(int success)
Creates the parameter data for the rule result detail. |
int |
getNumberOfCharacteristics()
Returns the number of characteristics which currently must be satisfied in order for a password to meet the requirements of this rule. |
List<CharacterRule> |
getRules()
Returns the character rules used by this rule. |
void |
setNumberOfCharacteristics(int n)
Sets the number of characteristics which must be satisfied in order for a password to meet the requirements of this rule. |
void |
setRules(List<CharacterRule> l)
Sets the character rules used by this rule. |
String |
toString()
Returns a string representation of this object. |
RuleResult |
validate(PasswordData passwordData)
Validates the supplied password data per the requirements of this rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ERROR_CODE
| Constructor Detail |
|---|
public CharacterCharacteristicsRule()
| Method Detail |
|---|
public List<CharacterRule> getRules()
public void setRules(List<CharacterRule> l)
l - list of rulespublic void setNumberOfCharacteristics(int n)
n - number of characteristics to enforce, where n > 0public int getNumberOfCharacteristics()
public RuleResult validate(PasswordData passwordData)
validate in interface RulepasswordData - to verify (not null).
protected Map<String,?> createRuleResultDetailParameters(int success)
success - number of successful rules
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||