Class Saml2IdpErrorViewResolver

java.lang.Object
se.swedenconnect.spring.saml.idp.autoconfigure.error.Saml2IdpErrorViewResolver
All Implemented Interfaces:
org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver, Ordered

public class Saml2IdpErrorViewResolver extends Object implements org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver, Ordered
A SAML error view resolver for handling UnrecoverableSaml2IdpException.
Author:
Martin Lindström
  • Constructor Details

    • Saml2IdpErrorViewResolver

      public Saml2IdpErrorViewResolver(ApplicationContext applicationContext)
      Constructor.
      Parameters:
      applicationContext - the application context
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered
    • setOrder

      public void setOrder(int order)
      Assigns the order for this bean.
      Parameters:
      order - the order
    • setIdpErrorViewName

      public void setIdpErrorViewName(String idpErrorViewName)
      Assigns the view name for IdP errors. The default is error/idp.
      Parameters:
      idpErrorViewName - the view name
    • resolveErrorView

      public ModelAndView resolveErrorView(jakarta.servlet.http.HttpServletRequest request, HttpStatus status, Map<String,Object> model)
      Specified by:
      resolveErrorView in interface org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver