|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.ibm.passwordrules.LexicalRule
|
+--com.ibm.passwordrules.standard.MustContain
This class implements built-in rule for inclusion of required characters in a password
| Field Summary | |
|---|---|
static java.lang.String |
INCOMPATIBLE_CHARACTER_RESTRICTIONS
Constant representing a message key in a property file |
static java.lang.String |
NO_REQUIRED_CHARACTERS_FOUND
Constant representing a message key in a property file |
| Fields inherited from class com.ibm.passwordrules.LexicalRule |
|---|
DEFAULT_MAX_SEQUENTIAL_CHARACTERS, LOWER_CASE_ONLY, UPPER_CASE_ONLY |
| Constructor Summary | |
|---|---|
MustContain(char[] charList)
Constructor |
|
MustContain(java.lang.String charList)
Constructor |
|
| Method Summary | |
|---|---|
void |
constrain(PasswordGenerator generator)
Constrain the password generator to the allowed values. |
char[] |
getCharList()
Return a list of required characters. |
boolean |
join(Rule rule)
Method tries to join the specified rule with one defined by this object. |
void |
setCharList(char[] charList)
Set a list of required characters. |
boolean |
validate(java.lang.String password,
ValidationInfo validationInfo)
Validate the given password using the given validation info. |
| Methods inherited from class com.ibm.passwordrules.LexicalRule |
|---|
getParameter, setParameter, validateSafe |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NO_REQUIRED_CHARACTERS_FOUND
public static final java.lang.String INCOMPATIBLE_CHARACTER_RESTRICTIONS
| Constructor Detail |
public MustContain(char[] charList)
charList - integer array representing the list of required characters.public MustContain(java.lang.String charList)
charList - String containing the list of required characters.| Method Detail |
public char[] getCharList()
public void setCharList(char[] charList)
charList - integer array representing the list of required characters.
public boolean validate(java.lang.String password,
ValidationInfo validationInfo)
throws InvalidPasswordException
validationInfo - contains contextual information about the password being validated.password - Password to validate.
InvalidPasswordException - thrown when password is invalid.public void constrain(PasswordGenerator generator)
constrain in interface Ruleconstrain in class LexicalRulegenerator - including a character template to constrain.
public boolean join(Rule rule)
throws IncompatibleRulesException
rule - The rule to join
IncompatibleRulesException - thrown when two or more incompatible password rules are used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||