|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.password.rule.AbstractPasswordRule
org.silverpeas.password.rule.MaxLengthPasswordRule
public class MaxLengthPasswordRule
Maximum length of a password : 8 by default. User: Yohann Chastagnier Date: 07/01/13
| Field Summary |
|---|
| Fields inherited from class org.silverpeas.password.rule.AbstractPasswordRule |
|---|
DEFAULT_LENGTH, settings |
| Constructor Summary | |
|---|---|
MaxLengthPasswordRule()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
check(String password)
Checks the given password. |
Integer |
getValue()
Gets the value of the parameter defined in settings for the rule. |
boolean |
isRequired()
Indicates if the rule is required. |
String |
random()
Generates a random password part according to the nature of the rule. |
| Methods inherited from class org.silverpeas.password.rule.AbstractPasswordRule |
|---|
countRegexOccur, getDescription, getIntegerFromSettings, getString, getType, isCombined, random |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxLengthPasswordRule()
| Method Detail |
|---|
public boolean isRequired()
PasswordRule
isRequired in interface PasswordRuleisRequired in class AbstractPasswordRulepublic Integer getValue()
PasswordRule
public boolean check(String password)
PasswordRule
public String random()
PasswordRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||