Package org.passay

Interface PasswordValidator

All Known Implementing Classes:
DefaultPasswordValidator

public interface PasswordValidator
Interface for password validators.
  • Method Details

    • getRules

      List<? extends Rule> getRules()
      Returns the password rules for this validator.
      Returns:
      unmodifiable list of password rules
    • getMessageResolver

      MessageResolver getMessageResolver()
      Returns the message resolver for this validator.
      Returns:
      message resolver
    • getEntropyProvider

      BiFunction<List<? extends Rule>,PasswordData,Entropy> getEntropyProvider()
      Returns the entropy provider for this validator.
      Returns:
      entropy provider
    • validate

      ValidationResult validate(PasswordData passwordData)
      Validates the supplied password data against the rules in this validator.
      Parameters:
      passwordData - to validate
      Returns:
      validation result