Class JwtAuthenticationEntryPoint
- java.lang.Object
-
- cz.zcu.students.cacha.bp_server.security.JwtAuthenticationEntryPoint
-
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
@Component public class JwtAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Class configurating unsuccessful login responses
-
-
Constructor Summary
Constructors Constructor Description JwtAuthenticationEntryPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
Modifies the response on unsuccessful login
-
-
-
Method Detail
-
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException
Modifies the response on unsuccessful login- Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Parameters:
request
- login http requestresponse
- login http responseauthException
- exception- Throws:
IOException
- exception
-
-