Class HeaderWriterLogoutHandler
java.lang.Object
org.springframework.security.web.authentication.logout.HeaderWriterLogoutHandler
- All Implemented Interfaces:
- LogoutHandler
- Since:
- 5.2
- 
Constructor SummaryConstructorsConstructorDescriptionHeaderWriterLogoutHandler(HeaderWriter headerWriter) Constructs a new instance using the passedHeaderWriterimplementation
- 
Method SummaryModifier and TypeMethodDescriptionvoidlogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable Authentication authentication) Causes a logout to be completed.
- 
Constructor Details- 
HeaderWriterLogoutHandlerConstructs a new instance using the passedHeaderWriterimplementation- Parameters:
- headerWriter-
- Throws:
- IllegalArgumentException- if headerWriter is null.
 
 
- 
- 
Method Details- 
logoutpublic void logout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable 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
 
 
-