Class PasswordValidation

java.lang.Object
com.broadleafcommerce.auth.user.validation.PasswordValidation

public final class PasswordValidation extends Object
The result of validating a password against rules defined within PasswordRequestValidator
Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • errorMessages

      @NonNull public final List<String> errorMessages
      If the password failed validation, this holds all of the reason why. Each message can be a key into a message bundle.
  • Constructor Details

    • PasswordValidation

      public PasswordValidation(boolean failure, @Nullable List<String> errorMessages)
  • Method Details

    • isFailure

      public boolean isFailure()
      Whether or not the password passed validation
    • getErrorMessages

      @NonNull public List<String> getErrorMessages()
      If the password failed validation, this holds all of the reason why. Each message can be a key into a message bundle.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object