org.silverpeas.password.service
Class PasswordCheck

java.lang.Object
  extended by org.silverpeas.password.service.PasswordCheck

public class PasswordCheck
extends Object

User: Yohann Chastagnier Date: 15/01/13


Field Summary
protected static ResourceLocator settings
           
 
Method Summary
 Collection<PasswordRule> getCombinedRulesInError()
          Gets combined rules in error.
 String getFormattedErrorMessage(String language)
          Gets a formatted error message according to the given language
 Collection<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

protected static ResourceLocator settings
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:

getString

protected String getString(String key,
                           String language,
                           String... params)
Gets a string message according to the given language.

Parameters:
key -
language -
params -
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.