Class AppAuthenticationEntryPoint
java.lang.Object
com.markvarga21.studentmanager.config.security.AppAuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
@Component
public class AppAuthenticationEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
The entry point for the application regarding the authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
commence
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) This method is used to commence the authentication.
-
Constructor Details
-
AppAuthenticationEntryPoint
public AppAuthenticationEntryPoint()
-
-
Method Details
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException This method is used to commence the authentication.- Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Parameters:
request
- The HTTP request.response
- The HTTP response.authException
- The authentication exception.- Throws:
IOException
- If an input or output exception occurs.
-