Class LogoutSuccessEventPublishingLogoutHandler
java.lang.Object
org.springframework.security.web.authentication.logout.LogoutSuccessEventPublishingLogoutHandler
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationEventPublisherAware,- LogoutHandler
public final class LogoutSuccessEventPublishingLogoutHandler
extends Object
implements LogoutHandler, org.springframework.context.ApplicationEventPublisherAware
A logout handler which publishes 
LogoutSuccessEvent- Since:
- 5.2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidlogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) Causes a logout to be completed.voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) 
- 
Constructor Details- 
LogoutSuccessEventPublishingLogoutHandlerpublic LogoutSuccessEventPublishingLogoutHandler()
 
- 
- 
Method Details- 
logoutpublic void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) Description copied from interface:LogoutHandlerCauses a logout to be completed. The method must complete successfully.- Specified by:
- logoutin interface- LogoutHandler
- Parameters:
- request- the HTTP request
- response- the HTTP response
- authentication- the current principal details
 
- 
setApplicationEventPublisherpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
- setApplicationEventPublisherin interface- org.springframework.context.ApplicationEventPublisherAware
 
 
-