Class HeaderWriterLogoutHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.logout.HeaderWriterLogoutHandler
-
- All Implemented Interfaces:
LogoutHandler
public final class HeaderWriterLogoutHandler extends java.lang.Object implements LogoutHandler
- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description HeaderWriterLogoutHandler(HeaderWriter headerWriter)
Constructs a new instance using the passedHeaderWriter
implementation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)
Causes a logout to be completed.
-
-
-
Constructor Detail
-
HeaderWriterLogoutHandler
public HeaderWriterLogoutHandler(HeaderWriter headerWriter)
Constructs a new instance using the passedHeaderWriter
implementation- Parameters:
headerWriter
-- Throws:
java.lang.IllegalArgumentException
- if headerWriter is null.
-
-
Method Detail
-
logout
public void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)
Description copied from interface:LogoutHandler
Causes a logout to be completed. The method must complete successfully.- Specified by:
logout
in interfaceLogoutHandler
- Parameters:
request
- the HTTP requestresponse
- the HTTP responseauthentication
- the current principal details
-
-