Class PasswordCheck


  • public class PasswordCheck
    extends Object
    User: Yohann Chastagnier Date: 15/01/13
    • Field Detail

      • settings

        protected static org.silverpeas.kernel.bundle.SettingBundle 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: