Class ResponseValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
se.swedenconnect.opensaml.saml2.response.ResponseProcessingException
se.swedenconnect.opensaml.saml2.response.validation.ResponseValidationException
All Implemented Interfaces:
Serializable

public class ResponseValidationException extends ResponseProcessingException
Exception class for response validation errors.
Author:
Martin Lindström (martin@idsec.se)
See Also:
  • Constructor Details

    • ResponseValidationException

      @Deprecated(forRemoval=true) public ResponseValidationException(@Nonnull String message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Also supply the response message
      Constructor taking an error message.
      Parameters:
      message - the error message
    • ResponseValidationException

      public ResponseValidationException(@Nonnull String message, @Nullable Response response, @Nullable Assertion assertion)
      Constructor taking an error message and the response and assertion being processed.
      Parameters:
      message - the error message
      response - the response being processed
      assertion - the assertion being processed
    • ResponseValidationException

      public ResponseValidationException(@Nonnull List<String> validationErrors, @Nullable Response response, @Nullable Assertion assertion)
      Constructor taking a list of validation messages and the response and assertion being processed.
      Parameters:
      validationErrors - the validation errors
      response - the response being processed
      assertion - the assertion being processed
    • ResponseValidationException

      @Deprecated(forRemoval=true) public ResponseValidationException(@Nonnull String message, @Nullable Throwable cause)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Also supply the response message
      Constructor taking an error message and the cause of the error.
      Parameters:
      message - the error message
      cause - the cause of the error
    • ResponseValidationException

      public ResponseValidationException(@Nonnull String message, @Nullable Throwable cause, @Nullable Response response, @Nullable Assertion assertion)
      Constructor taking an error message, the cause of the error and the response and assertion being processed.
      Parameters:
      message - the error message
      cause - the cause of the error
      response - the response being processed
      assertion - the assertion being processed
    • ResponseValidationException

      public ResponseValidationException(@Nonnull List<String> validationErrors, @Nullable Throwable cause, @Nullable Response response, @Nullable Assertion assertion)
      Constructor taking a list of validation messages, the cause of the error and the response and assertion being processed.
      Parameters:
      validationErrors - the validation errors
      cause - the cause of the error
      response - the response being processed
      assertion - the assertion being processed
  • Method Details

    • getValidationErrors

      @Nullable public List<String> getValidationErrors()
      Gets the list of validation errors (may be null)
      Returns:
      a list of validation errors, or null