@Component public class UnauthorizedEntryPointHandler extends Object implements org.springframework.security.web.AuthenticationEntryPoint
commence method will always return an HttpStatus.UNAUTHORIZED (401) error.
HttpAuthenticationEntryPoint OR
UnauthorizedEntryPointHandler
JwtAuthenticationEntryPoint
Http401DeniedEntryPoint
RestAuthenticationEntryPoint| Constructor and Description |
|---|
UnauthorizedEntryPointHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException) |
public void commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException)
throws IOException,
javax.servlet.ServletException
commence in interface org.springframework.security.web.AuthenticationEntryPointIOExceptionjavax.servlet.ServletExceptionCopyright © 2016. All rights reserved.