Class PasswordValidation


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

      • 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 Detail

      • PasswordValidation

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

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object