Class SequentialForbiddenPasswordRule
- java.lang.Object
-
- org.silverpeas.core.security.authentication.password.rule.AbstractPasswordRule
-
- org.silverpeas.core.security.authentication.password.rule.SequentialForbiddenPasswordRule
-
- All Implemented Interfaces:
PasswordRule
public class SequentialForbiddenPasswordRule extends AbstractPasswordRule
Sequential character forbidden in password. User: Yohann Chastagnier Date: 07/01/13
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.security.authentication.password.rule.AbstractPasswordRule
DEFAULT_LENGTH, settings
-
-
Constructor Summary
Constructors Constructor Description SequentialForbiddenPasswordRule()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(String password)
Checks the given password.Boolean
getValue()
Gets the value of the parameter defined in settings for the rule.String
random()
Generates a random password part according to the nature of the rule.-
Methods inherited from class org.silverpeas.core.security.authentication.password.rule.AbstractPasswordRule
countRegexOccur, getDescription, getIntegerFromSettings, getString, getType, isCombined, isRequired, random
-
-
-
-
Method Detail
-
getValue
public Boolean getValue()
Description copied from interface:PasswordRule
Gets the value of the parameter defined in settings for the rule.- Returns:
-
check
public boolean check(String password)
Description copied from interface:PasswordRule
Checks the given password.- Returns:
-
random
public String random()
Description copied from interface:PasswordRule
Generates a random password part according to the nature of the rule.- Returns:
- the random part of a password
-
-