Class LogoutService

java.lang.Object
inha.dayoook_e.utils.jwt.LogoutService
All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutHandler

@Service public class LogoutService extends Object implements org.springframework.security.web.authentication.logout.LogoutHandler
LogoutService는 사용자가 로그아웃할 때 JWT를 처리하는 서비스.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
    사용자가 로그아웃할 때 실행되는 메서드.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogoutService

      public LogoutService()
  • Method Details

    • logout

      public void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
      사용자가 로그아웃할 때 실행되는 메서드.
      Specified by:
      logout in interface org.springframework.security.web.authentication.logout.LogoutHandler
      Parameters:
      request - HTTP 요청 객체
      response - HTTP 응답 객체
      authentication - 인증 객체