Class DigestDictionaryRule

java.lang.Object
org.passay.rule.AbstractDictionaryRule
org.passay.rule.DigestDictionaryRule
All Implemented Interfaces:
Rule

public class DigestDictionaryRule extends AbstractDictionaryRule
Rule for determining if a password matches a digested password that is stored in a dictionary.
  • Field Details

    • ERROR_CODE

      public static final String ERROR_CODE
      Error code for matching dictionary word.
      See Also:
    • ERROR_CODE_REVERSED

      public static final String ERROR_CODE_REVERSED
      Error code for matching reversed dictionary word.
      See Also:
    • hashBean

      private final org.cryptacular.bean.HashBean<CharSequence> hashBean
      Hash bean to use for comparing hashed passwords.
    • charset

      private final Charset charset
      Character set to use for undigested passwords.
  • Constructor Details

    • DigestDictionaryRule

      public DigestDictionaryRule(org.cryptacular.bean.HashBean<CharSequence> bean, Dictionary dict)
      Creates new digest history rule which operates on password references that were digested with the supplied hash. The dictionary should be ready to use when passed to this constructor.
      Parameters:
      dict - to use for searching
      bean - encoding hash bean
    • DigestDictionaryRule

      public DigestDictionaryRule(org.cryptacular.bean.HashBean<CharSequence> bean, Dictionary dict, boolean matchBackwards)
      Creates new digest history rule which operates on password references that were digested with the supplied hash. The dictionary should be ready to use when passed to this constructor.
      Parameters:
      dict - to use for searching
      bean - encoding hash bean
      matchBackwards - whether to match dictionary words backwards
    • DigestDictionaryRule

      public DigestDictionaryRule(org.cryptacular.bean.HashBean<CharSequence> bean, Dictionary dict, boolean matchBackwards, Charset set)
      Creates new digest history rule which operates on password references that were digested with the supplied hash. The dictionary should be ready to use when passed to this constructor.
      Parameters:
      dict - to use for searching
      bean - encoding hash bean
      matchBackwards - whether to match dictionary words backwards
      set - to use for undigested passwords
  • Method Details