|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.passwordrules.standard.PasswordRulesInfo
Class is a value object containing information about password rules.
Constructor Summary | |
PasswordRulesInfo()
Default constructor |
Method Summary | |
void |
addCustomRule(java.lang.String name,
java.lang.String value)
Method to add custom rule definition |
boolean |
getAllowInDictionary()
Getter for standard password rule AllowInDictionary |
boolean |
getAllowUserID()
Getter for standard password rule AllowUserID |
boolean |
getAllowUserIDCaseInsensitive()
Getter for standard password rule AllowUserIDCaseInsensitive |
boolean |
getAllowUserName()
Getter for standard password rule AllowUserName |
boolean |
getAllowUserNameCaseInsensitive()
Getter for standard password rule AllowUserNameCaseInsensitive |
java.util.Map |
getCustomRules()
Getter of all custom rules |
java.lang.String |
getInvalidChars()
Getter for standard password rule InvalidChars |
int |
getMaxLength()
Getter for standard password rule MaxLength |
int |
getMaxSequentialCharacters()
Getter for standard password rule MaxSequentialCharacters |
long |
getMaxValidityPeriod()
Getter for standard password rule MaxValidityPeriod |
int |
getMinAlphabeticCharacters()
Getter for standard password rule MinAlphabeticCharacters |
int |
getMinDigitCharacters()
Getter for standard password rule MinDigitCharacters |
int |
getMinDistinctCharacters()
Getter for standard password rule MinDistinctCharacters |
int |
getMinLength()
Getter for standard password rule MinLength |
long |
getMinValidityPeriod()
Getter for standard password rule MinValidityPeriod |
int |
getRepeatedHistoryLength()
Getter for standard password rule RepeatedHistoryLength |
java.lang.String |
getRequiredChars()
Getter for standard password rule RequiredChars |
java.lang.String |
getRestrictedToChars()
Getter for standard password rule RestrictedToChars |
int |
getReversedHistoryLength()
Getter for standard password rule ReversedHistoryLength |
java.lang.String |
getStartsWithChars()
Getter for standard password rule StartsWithChars |
static boolean |
isRuleTypeTextBox(java.lang.String rule)
|
void |
setAllowInDictionary(boolean allowInDictionary)
Setter for standard password rule AllowInDictionary |
void |
setAllowUserID(boolean allowUserID)
Setter for standard password rule AllowUserID |
void |
setAllowUserIDCaseInsensitive(boolean allowUserIDCaseInsensitive)
Getter for standard password rule AllowUserIDCaseInsensitive |
void |
setAllowUserName(boolean allowUserName)
Setter for standard password rule AllowUserName |
void |
setAllowUserNameCaseInsensitive(boolean allowUserNameCaseInsensitive)
Setter for standard password rule AllowUserNameCaseInsensitive |
void |
setCustomRules(java.util.Map customRules)
Setter of all custom rules |
void |
setInvalidChars(java.lang.String invalidChars)
Setter for standard password rule InvalidChars |
void |
setMaxLength(int maxLength)
Setter for standard password rule MaxLength |
void |
setMaxSequentialCharacters(int maxSequentialCharacters)
Setter for standard password rule MaxSequentialCharacters |
void |
setMaxValidityPeriod(long maxValidityPeriod)
Setter for standard password rule MaxValidityPeriod |
void |
setMinAlphabeticCharacters(int minAlphabeticChars)
Setter for standard password rule MinAlphabeticCharacters |
void |
setMinDigitCharacters(int minDigitChars)
Setter for standard password rule MinDigitCharacters |
void |
setMinDistinctCharacters(int minDistinctChars)
Setter for standard password rule MinDistinctCharacters |
void |
setMinLength(int minLength)
Setter for standard password rule MinLength |
void |
setMinValidityPeriod(long minValidityPeriod)
Setter for standard password rule MinValidityPeriod |
void |
setRepeatedHistoryLength(int repeatedHistoryLength)
Setter for standard password rule RepeatedHistoryLength |
void |
setRequiredChars(java.lang.String requiredChars)
Setter for standard password rule RequiredChars |
void |
setRestrictedToChars(java.lang.String restrictedToChars)
Getter for standard password rule RestrictedToChars |
void |
setReversedHistoryLength(int reversedHistoryLength)
Setter for standard password rule RepeatedHistoryLength |
void |
setStartsWithChars(java.lang.String startsWithChars)
Getter for standard password rule StartsWithChars |
java.lang.String |
toString()
Returns string representation of all password rules |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PasswordRulesInfo()
Method Detail |
public int getMinLength()
public void setMinLength(int minLength)
minLength
- value of password's minimum length.public int getMaxLength()
public void setMaxLength(int maxLength)
maxLength
- value of password's maximum length.public int getMaxSequentialCharacters()
public void setMaxSequentialCharacters(int maxSequentialCharacters)
maxSequentialCharacters
- value of password's number of maximum sequential characters.public int getMinDistinctCharacters()
public void setMinDistinctCharacters(int minDistinctChars)
minDistinctChars
- value of password's number of minimum distinct characters.public int getMinAlphabeticCharacters()
public void setMinAlphabeticCharacters(int minAlphabeticChars)
minAlphabeticChars
- value of password's number of minimum alphabetic characters.public int getMinDigitCharacters()
public void setMinDigitCharacters(int minDigitChars)
minDigitChars
- value of password's number of minimum digit characters.public java.lang.String getInvalidChars()
public void setInvalidChars(java.lang.String invalidChars)
invalidChars
- value of password's set of invalid characters.public java.lang.String getRequiredChars()
public void setRequiredChars(java.lang.String requiredChars)
requiredChars
- value of password's set of required characters.public java.lang.String getRestrictedToChars()
public void setRestrictedToChars(java.lang.String restrictedToChars)
restrictedToChars
- value of password's set of allowed characters.public java.lang.String getStartsWithChars()
public void setStartsWithChars(java.lang.String startsWithChars)
startsWithChars
- value of password's set of characters to begin the password with.public int getRepeatedHistoryLength()
public void setRepeatedHistoryLength(int repeatedHistoryLength)
repeatedHistoryLength
- number representing length of password history
used to check for repeating passwords.public int getReversedHistoryLength()
public void setReversedHistoryLength(int reversedHistoryLength)
reversedHistoryLength
- number representing length of reversed password history
used to check for repeating passwords.public boolean getAllowUserName()
public void setAllowUserName(boolean allowUserName)
allowUserName
- true if any part of user name is allowed in the password, false if it isn'tpublic boolean getAllowUserNameCaseInsensitive()
public void setAllowUserNameCaseInsensitive(boolean allowUserNameCaseInsensitive)
allowUserNameCaseInsensitive
- true if any part of case insensitive user name is allowed in the password, false if it isn'tpublic boolean getAllowUserID()
public void setAllowUserID(boolean allowUserID)
allowUserID
- true if user name is allowed in the password, false if it isn'tpublic boolean getAllowUserIDCaseInsensitive()
public void setAllowUserIDCaseInsensitive(boolean allowUserIDCaseInsensitive)
allowUserIDCaseInsensitive
- true if case insensitive user name is allowed in the password, false if it isn'tpublic long getMinValidityPeriod()
public void setMinValidityPeriod(long minValidityPeriod)
minValidityPeriod
- value representing minimum number of time units the password will be valid forpublic long getMaxValidityPeriod()
public void setMaxValidityPeriod(long maxValidityPeriod)
maxValidityPeriod
- value representing maximum number of time units the password will be valid forpublic boolean getAllowInDictionary()
public void setAllowInDictionary(boolean allowInDictionary)
allowInDictionary
- true if password may exist in password dictionary of commonly used passwords
false if it may notpublic java.lang.String toString()
toString
in class java.lang.Object
public void addCustomRule(java.lang.String name, java.lang.String value)
name
- fully qualified class name of a class implementing Rule interface.value
- optional value of a parameter used by the custom rule class.public java.util.Map getCustomRules()
public void setCustomRules(java.util.Map customRules)
props
- Properties object where key is fully qualified class
name of a class implementing Rule interface and
value is optional value of a parameter used by the custom rule class.public static boolean isRuleTypeTextBox(java.lang.String rule)
rule
- Custom rule name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |