|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.passwordrules.standard.PasswordRulesInfo
This class represents 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)
Add custom rule definition |
boolean |
getAllowInDictionary()
Make sure, that the genenerated password is or is not allowed in the password dictionary. |
boolean |
getAllowUserID()
Make sure in a case sensitive way, that the user id is or is not to be allowed within the password. |
boolean |
getAllowUserIDCaseInsensitive()
Check in a case insensitive way, if user id is to be allowed within the password. |
boolean |
getAllowUserName()
Check in a case sensitive way, if user name is to be allowed within the password. |
boolean |
getAllowUserNameCaseInsensitive()
Check in a case insensitive way, if user name is to be allowed within the password. |
java.util.Map |
getCustomRules()
Obtain definitions of all custom rules known to this object. |
java.lang.String |
getInvalidChars()
Return the characteres which are not to be used within the passsword. |
int |
getMaxLength()
Return the maximum length of the passsword. |
int |
getMaxSequentialCharacters()
Return the maximum allowed number of sequential characteres within the passsword. |
long |
getMaxValidityPeriod()
Return maximum number of time units the password will be valid for. |
int |
getMinAlphabeticCharacters()
Return the minimum required number of alphabetic characteres within the passsword. |
int |
getMinDigitCharacters()
Return the minimum required number of numeric characteres within the passsword. |
int |
getMinDistinctCharacters()
Return the minimum required number of distinct characteres within the passsword. |
int |
getMinLength()
Return the minimum length of the passsword. |
long |
getMinValidityPeriod()
Return minimum number of time units the password will be valid for. |
int |
getRepeatedHistoryLength()
Return the length of the password history used to check for repeating passwords. |
java.lang.String |
getRequiredChars()
Return the characteres one of which which must used within the passsword. |
java.lang.String |
getRestrictedToChars()
Return the characteres from which the passsword must be created. |
int |
getReversedHistoryLength()
Return the length of the password history used to check for repeating passwords spelled backwards |
java.lang.String |
getStartsWithChars()
Return the characteres one of which must be the first character set of the password. |
static boolean |
isRuleTypeTextBox(java.lang.String rule)
Check if the given rule is represented as a textbox on the GUI. |
void |
setAllowInDictionary(boolean allowInDictionary)
Check if the genenerated password is or is not allowed in the password dictionary. |
void |
setAllowUserID(boolean allowUserID)
Make sure in a case sensitive way, that the user id is or is not to be allowed within the password. |
void |
setAllowUserIDCaseInsensitive(boolean allowUserIDCaseInsensitive)
Make sure in a case insensitive way, that the user id is or is not to be allowed within the password. |
void |
setAllowUserName(boolean allowUserName)
Make sure in a case sensitive way, that the user name is or is not to be allowed within the password. |
void |
setAllowUserNameCaseInsensitive(boolean allowUserNameCaseInsensitive)
Make sure in a case insensitive way, that the user name is or is not to be allowed within the password. |
void |
setCustomRules(java.util.Map customRules)
Set all custom rules onto this object. |
void |
setInvalidChars(java.lang.String invalidChars)
Set the characteres which are not to be used within the passsword. |
void |
setMaxLength(int maxLength)
Set the maximum length of the passsword. |
void |
setMaxSequentialCharacters(int maxSequentialCharacters)
Set the maximum allowed number of sequential characteres within the passsword. |
void |
setMaxValidityPeriod(long maxValidityPeriod)
Set maximum number of time units the password will be valid for. |
void |
setMinAlphabeticCharacters(int minAlphabeticChars)
Set the minimum required number of alphabetic characteres within the passsword. |
void |
setMinDigitCharacters(int minDigitChars)
Set the minimum required number of numeric characteres within the passsword. |
void |
setMinDistinctCharacters(int minDistinctChars)
Set the minimum required number of distinct characteres within the passsword. |
void |
setMinLength(int minLength)
Set the minimum length of the passsword. |
void |
setMinValidityPeriod(long minValidityPeriod)
Set minimum number of time units the password will be valid for. |
void |
setRepeatedHistoryLength(int repeatedHistoryLength)
Return the length of the password history used to check for repeating passwords. |
void |
setRequiredChars(java.lang.String requiredChars)
Set the characteres one of which which must used within the passsword. |
void |
setRestrictedToChars(java.lang.String restrictedToChars)
Set the characteres from which the passsword must be created. |
void |
setReversedHistoryLength(int reversedHistoryLength)
Set the length of the password history used to check for repeating passwords spelled backwards |
void |
setStartsWithChars(java.lang.String startsWithChars)
Set the characteres one of which must be the first character set of the password. |
java.lang.String |
toString()
Return string representation of all password rules set on this object. |
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
- int value representing the minimum length of the passswordpublic int getMaxLength()
public void setMaxLength(int maxLength)
maxLength
- int value representing the maximum length of the passswordpublic int getMaxSequentialCharacters()
public void setMaxSequentialCharacters(int maxSequentialCharacters)
maxSequentialCharacters
- int value representing the maximum allowed number of sequential characteres within the passswordpublic int getMinDistinctCharacters()
public void setMinDistinctCharacters(int minDistinctChars)
minDistinctChars
- int value representing the minimum required number of distinct characteres within the passswordpublic int getMinAlphabeticCharacters()
public void setMinAlphabeticCharacters(int minAlphabeticChars)
minAlphabeticChars
- int value representing the minimum required number of alphabetic characteres within the passswordpublic int getMinDigitCharacters()
public void setMinDigitCharacters(int minDigitChars)
minDigitChars
- int value representing the minimum required number of numeric characteres within the passswordpublic java.lang.String getInvalidChars()
public void setInvalidChars(java.lang.String invalidChars)
invalidChars
- String value representing the characteres which are not to be used within the passsword.public java.lang.String getRequiredChars()
public void setRequiredChars(java.lang.String requiredChars)
requiredChars
- String value representing the characteres one of which which must used within the passsword.public java.lang.String getRestrictedToChars()
public void setRestrictedToChars(java.lang.String restrictedToChars)
restrictedToChars
- String value representing the set of characteres from which the passsword must be created.public java.lang.String getStartsWithChars()
public void setStartsWithChars(java.lang.String startsWithChars)
startsWithChars
- String value representing the characteres one of which must be the first character set of the password.public int getRepeatedHistoryLength()
public void setRepeatedHistoryLength(int repeatedHistoryLength)
repeatedHistoryLength
- int value representing length of password historypublic int getReversedHistoryLength()
public void setReversedHistoryLength(int reversedHistoryLength)
reversedHistoryLength
- int value representing length of password historypublic boolean getAllowUserName()
public void setAllowUserName(boolean allowUserName)
allowUserName
- boolean value true if user name is to be allowed within the password, false otherwisepublic boolean getAllowUserNameCaseInsensitive()
public void setAllowUserNameCaseInsensitive(boolean allowUserNameCaseInsensitive)
allowUserNameCaseInsensitive
- boolean value true if user name is to be allowed within the password, false otherwisepublic boolean getAllowUserID()
public void setAllowUserID(boolean allowUserID)
allowUserID
- boolean value true if user id is to be allowed within the password, false otherwisepublic boolean getAllowUserIDCaseInsensitive()
public void setAllowUserIDCaseInsensitive(boolean allowUserIDCaseInsensitive)
allowUserIDCaseInsensitive
- boolean value true if user id is to be allowed within the password, false otherwisepublic long getMinValidityPeriod()
public void setMinValidityPeriod(long minValidityPeriod)
minValidityPeriod
- long value representing minimum number of time units the password will be valid forpublic long getMaxValidityPeriod()
public void setMaxValidityPeriod(long maxValidityPeriod)
maxValidityPeriod
- long value representing maximum number of time units the password will be valid forpublic boolean getAllowInDictionary()
public void setAllowInDictionary(boolean allowInDictionary)
allowInDictionary
- boolean value true if the genenerated password is allowed in the password dictionary, false otherwisepublic 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.Rule
public java.util.Map getCustomRules()
Rule
public void setCustomRules(java.util.Map customRules)
customRules
- Map object where key is fully qualified class
name of a class implementing Rule interface and
value is optional and may contain a value of a parameter used by the custom rule class.Rule
public static boolean isRuleTypeTextBox(java.lang.String rule)
rule
- Custom rule name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |