Class PasswordPolicyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.base.security.PasswordPolicyException
All Implemented Interfaces:
Serializable

public class PasswordPolicyException extends Exception
A PasswordPolicyException is thrown when setting or changing a password and the new password doesn't comply to certain restrictions (like minimum length).
See Also:
  • Constructor Details

    • PasswordPolicyException

      public PasswordPolicyException()
      Constructs a new PasswordPolicyException with null. as detail message.
    • PasswordPolicyException

      public PasswordPolicyException(String message)
      Constructs a new PasswordPolicyException with the given detail message.
      Parameters:
      message - the detail message
    • PasswordPolicyException

      public PasswordPolicyException(String message, String problem)
      Constructs a new PasswordPolicyException with the given detail message and problem.
      Parameters:
      message - the detail message
      problem - the actual problem of the password
    • PasswordPolicyException

      public PasswordPolicyException(String message, Throwable cause)
      Constructs a new PasswordPolicyException with null. as detail message and the given cause.
      Parameters:
      message - the detail message
      cause - the cause of this exception
    • PasswordPolicyException

      public PasswordPolicyException(Throwable cause)
      Constructs a new PasswordPolicyException with null as detail message and the given cause.
      Parameters:
      cause - the cause of this exception
  • Method Details

    • getProblem

      public String getProblem()
      Returns:
      The problem of the password.