Package com.almis.awe.rest.security
Class JWTAuthenticationEntryPoint
java.lang.Object
com.almis.awe.rest.security.JWTAuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class JWTAuthenticationEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
Custom Authentication EntryPoint.
Used to handle exceptions in authentication process in awe-rest api.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJWTAuthenticationEntryPoint
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commence
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
Field Details
-
NOT_FOUND
- See Also:
-
-
Constructor Details
-
JWTAuthenticationEntryPoint
public JWTAuthenticationEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException - Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Throws:
IOException
-