Class SecurityProblemSupport
- java.lang.Object
-
- org.zalando.problem.spring.web.advice.security.SecurityProblemSupport
-
- All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler,org.springframework.security.web.AuthenticationEntryPoint
@API(status=STABLE) @Component public class SecurityProblemSupport extends Object implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.security.web.access.AccessDeniedHandler
A compoundAuthenticationEntryPointandAccessDeniedHandlerthat delegates exceptions to Spring WebMVC'sHandlerExceptionResolveras defined inWebMvcConfigurationSupport. Compatible with spring-webmvc 4.3.3.
-
-
Constructor Summary
Constructors Constructor Description SecurityProblemSupport(org.springframework.web.servlet.HandlerExceptionResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)voidhandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException exception)
-
-
-
Method Detail
-
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)- Specified by:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint
-
handle
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException exception)- Specified by:
handlein interfaceorg.springframework.security.web.access.AccessDeniedHandler
-
-