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 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 interface org.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.