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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionSaml2IdpErrorViewResolver(ApplicationContext applicationContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()resolveErrorView(jakarta.servlet.http.HttpServletRequest request, HttpStatus status, Map<String, Object> model) voidsetIdpErrorViewName(String idpErrorViewName) Assigns the view name for IdP errors.voidsetOrder(int order) Assigns the order for this bean.
-
Constructor Details
-
Saml2IdpErrorViewResolver
Constructor.- Parameters:
applicationContext- the application context
-
-
Method Details
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) Assigns the order for this bean.- Parameters:
order- the order
-
setIdpErrorViewName
Assigns the view name for IdP errors. The default iserror/idp.- Parameters:
idpErrorViewName- the view name
-
resolveErrorView
public ModelAndView resolveErrorView(jakarta.servlet.http.HttpServletRequest request, HttpStatus status, Map<String, Object> model) - Specified by:
resolveErrorViewin interfaceorg.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver
-