@API(status=STABLE) @Component public class SecurityProblemSupport extends Object implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.security.web.access.AccessDeniedHandler
AuthenticationEntryPoint and AccessDeniedHandler that delegates exceptions to
Spring WebMVC's HandlerExceptionResolver as defined in WebMvcConfigurationSupport.
Compatible with spring-webmvc 4.3.3.WebMvcConfigurationSupport.handlerExceptionResolver()| Constructor and Description |
|---|
SecurityProblemSupport(org.springframework.web.servlet.HandlerExceptionResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception) |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException exception) |
@API(status=INTERNAL)
@Autowired
public SecurityProblemSupport(@Qualifier(value="handlerExceptionResolver")
org.springframework.web.servlet.HandlerExceptionResolver resolver)
public void commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException exception)
throws IOException,
javax.servlet.ServletException
commence in interface org.springframework.security.web.AuthenticationEntryPointIOExceptionjavax.servlet.ServletExceptionpublic void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.access.AccessDeniedException exception)
throws IOException,
javax.servlet.ServletException
handle in interface org.springframework.security.web.access.AccessDeniedHandlerIOExceptionjavax.servlet.ServletExceptionCopyright © 2015–2018 Zalando SE. All rights reserved.