Class InvalidPasswordException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.irurueta.authserver.authorization.domain.password.InvalidPasswordException
All Implemented Interfaces:
Serializable

public class InvalidPasswordException extends RuntimeException
The chosen password breaks the PasswordPolicy.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version.
      See Also:
    • violations

      private final transient List<PasswordViolation> violations
      The rules the password breaks.
  • Constructor Details

    • InvalidPasswordException

      public InvalidPasswordException(List<PasswordViolation> violations)
      Creates the exception.
      Parameters:
      violations - the rules the password breaks.
  • Method Details

    • getViolations

      public List<PasswordViolation> getViolations()
      Gets the broken rules.
      Returns:
      the rules the password breaks, never empty.