Package org.passay

Class DigestHistoryRule

    • Constructor Detail

      • DigestHistoryRule

        public DigestHistoryRule​(org.cryptacular.bean.HashBean<String> bean)
        Creates new digest history rule which operates on password references that were digested with the supplied hash.
        Parameters:
        bean - encoding hash bean
    • Method Detail

      • setCharset

        public void setCharset​(Charset set)
        Sets the character set to use for undigested passwords.
        Parameters:
        set - to use for undigested passwords
      • matches

        protected boolean matches​(String password,
                                  PasswordData.Reference reference)
        Determines whether a digested password matches a reference value.
        Overrides:
        matches in class HistoryRule
        Parameters:
        password - candidate clear text password.
        reference - reference digested password.
        Returns:
        true if passwords match, false otherwise.