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
Exception class for response validation errors.
- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResponseValidationException
(String message) Deprecated, for removal: This API element is subject to removal in a future version.Also supply the response messageResponseValidationException
(String message, Throwable cause) Deprecated, for removal: This API element is subject to removal in a future version.Also supply the response messageResponseValidationException
(String message, Throwable cause, Response response, Assertion assertion) Constructor taking an error message, the cause of the error and the response and assertion being processed.ResponseValidationException
(String message, Response response, Assertion assertion) Constructor taking an error message and the response and assertion being processed.ResponseValidationException
(List<String> validationErrors, Throwable cause, Response response, Assertion assertion) Constructor taking a list of validation messages, the cause of the error and the response and assertion being processed.ResponseValidationException
(List<String> validationErrors, Response response, Assertion assertion) Constructor taking a list of validation messages and the response and assertion being processed. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of validation errors (may benull
)Methods inherited from class se.swedenconnect.opensaml.saml2.response.ResponseProcessingException
getAssertion, getResponse
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseValidationException
Deprecated, for removal: This API element is subject to removal in a future version.Also supply the response messageConstructor 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 messageresponse
- the response being processedassertion
- 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 errorsresponse
- the response being processedassertion
- 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 messageConstructor taking an error message and the cause of the error.- Parameters:
message
- the error messagecause
- 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 messagecause
- the cause of the errorresponse
- the response being processedassertion
- 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 errorscause
- the cause of the errorresponse
- the response being processedassertion
- the assertion being processed
-
-
Method Details
-
getValidationErrors
Gets the list of validation errors (may benull
)- Returns:
- a list of validation errors, or
null
-