org.silverpeas.password.rule
Class MinLengthPasswordRule
java.lang.Object
org.silverpeas.password.rule.AbstractPasswordRule
org.silverpeas.password.rule.MinLengthPasswordRule
- All Implemented Interfaces:
- PasswordRule
public class MinLengthPasswordRule
- extends AbstractPasswordRule
Minimum length of a password : 8 by default.
User: Yohann Chastagnier
Date: 07/01/13
Method Summary |
boolean |
check(String password)
Checks the given password. |
Integer |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinLengthPasswordRule
public MinLengthPasswordRule()
- Default constructor.
getValue
public Integer 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
Copyright © 2016 Silverpeas. All Rights Reserved.