Class Saml2IdpErrorAttributes
java.lang.Object
org.springframework.boot.web.servlet.error.DefaultErrorAttributes
se.swedenconnect.spring.saml.idp.autoconfigure.error.Saml2IdpErrorAttributes
- All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorAttributes,Ordered,HandlerExceptionResolver
public class Saml2IdpErrorAttributes
extends org.springframework.boot.web.servlet.error.DefaultErrorAttributes
An
ErrorAttributes implementation that intercepts UnrecoverableSaml2IdpException and adds the
following items to the result of getErrorAttributes(WebRequest, ErrorAttributeOptions):
- "idpErrorCode" - The enum name of the
UnrecoverableSaml2IdpError. - "idpErrorMessageCode" - The message code describing the error
(
UnrecoverableSaml2IdpError.getMessageCode()). - "idpErrorDescription" - The textual description (
UnrecoverableSaml2IdpError.getDescription()). Should be the fallback text if the above does not render a text.
- Author:
- Martin Lindström
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetErrorAttributes(WebRequest webRequest, org.springframework.boot.web.error.ErrorAttributeOptions options) Methods inherited from class org.springframework.boot.web.servlet.error.DefaultErrorAttributes
getError, getMessage, getOrder, resolveException
-
Field Details
-
IDP_ERROR_CODE
- See Also:
-
IDP_ERROR_MESSAGE_CODE
- See Also:
-
IDP_ERROR_DESCRIPTION
- See Also:
-
-
Constructor Details
-
Saml2IdpErrorAttributes
public Saml2IdpErrorAttributes()
-
-
Method Details
-
getErrorAttributes
public Map<String,Object> getErrorAttributes(WebRequest webRequest, org.springframework.boot.web.error.ErrorAttributeOptions options) - Specified by:
getErrorAttributesin interfaceorg.springframework.boot.web.servlet.error.ErrorAttributes- Overrides:
getErrorAttributesin classorg.springframework.boot.web.servlet.error.DefaultErrorAttributes
-