Package inha.dayoook_e.utils.jwt
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
logout
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) 사용자가 로그아웃할 때 실행되는 메서드.
-
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 interfaceorg.springframework.security.web.authentication.logout.LogoutHandler
- Parameters:
request
- HTTP 요청 객체response
- HTTP 응답 객체authentication
- 인증 객체
-