Class AppLogoutSuccessHandler
java.lang.Object
com.markvarga21.studentmanager.config.security.AppLogoutSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler
@Component
public class AppLogoutSuccessHandler
extends Object
implements org.springframework.security.web.authentication.logout.LogoutSuccessHandler
The logout success handler for the application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onLogoutSuccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Handles a successful logout.
-
Constructor Details
-
AppLogoutSuccessHandler
public AppLogoutSuccessHandler()
-
-
Method Details
-
onLogoutSuccess
public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, jakarta.servlet.ServletException Handles a successful logout.- Specified by:
onLogoutSuccess
in interfaceorg.springframework.security.web.authentication.logout.LogoutSuccessHandler
- Parameters:
request
- the request.response
- the response.authentication
- the authentication.- Throws:
IOException
- if an I/O error occurs.jakarta.servlet.ServletException
- if a servlet error occurs.
-