Class PasswordCheck
- java.lang.Object
-
- org.silverpeas.core.security.authentication.password.service.PasswordCheck
-
public class PasswordCheck extends Object
User: Yohann Chastagnier Date: 15/01/13
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.silverpeas.kernel.bundle.SettingBundle
settings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<PasswordRule>
getCombinedRulesInError()
Gets combined rules in error.String
getFormattedErrorMessage(String language)
Gets a formatted error message according to the given languageCollection<PasswordRule>
getRequiredRulesInError()
Gets required rules in error.protected String
getString(String key, String language, String... params)
Gets a string message according to the given language.boolean
isCorrect()
Indicated if the checked password is correct.boolean
isRuleCombinationRespected()
Indicated if the combination of rules is respected.
-
-
-
Method Detail
-
getRequiredRulesInError
public Collection<PasswordRule> getRequiredRulesInError()
Gets required rules in error.- Returns:
-
getCombinedRulesInError
public Collection<PasswordRule> getCombinedRulesInError()
Gets combined rules in error.- Returns:
-
isCorrect
public boolean isCorrect()
Indicated if the checked password is correct.- Returns:
-
isRuleCombinationRespected
public boolean isRuleCombinationRespected()
Indicated if the combination of rules is respected.- Returns:
-
getFormattedErrorMessage
public String getFormattedErrorMessage(String language)
Gets a formatted error message according to the given language- Parameters:
language
-- Returns:
-
-