Class PasswordPolicyRequirementValidationException

All Implemented Interfaces:
Serializable

public class PasswordPolicyRequirementValidationException extends PasswordCredentialValidatorAuthnException
Password policy requirement exception thrown during password authentication. This exception is thrown when a password policy requirement is not met. This type of exception is intended to be recoverable since the user can make corrections to fix the exception.
See Also:
  • Constructor Details

    • PasswordPolicyRequirementValidationException

      public PasswordPolicyRequirementValidationException(String message, List<Message> requirementsMet, List<Message> requirementsNotMet)
      Construct a password policy requirement validation exception.
      Parameters:
      message - The exception message to use.
      requirementsMet - The list of messages related to password requirements that are met.
      requirementsNotMet - The list of messages related to password requirements that are not met.
  • Method Details

    • getRequirementsMet

      public List<String> getRequirementsMet(Locale locale)
      Get the list of localized messages for the password requirements that have been met.
      Returns:
      The list of password quality requirements messages that are localized based on the user's locale.
    • getRequirementsNotMet

      public List<String> getRequirementsNotMet(Locale locale)
      Get the list of localized messages for the password requirements that have been met.
      Returns:
      The list of password quality requirements messages that are localized based on the user's locale.