Class HeaderWriterServerLogoutHandler
- java.lang.Object
-
- org.springframework.security.web.server.authentication.logout.HeaderWriterServerLogoutHandler
-
- All Implemented Interfaces:
ServerLogoutHandler
public final class HeaderWriterServerLogoutHandler extends java.lang.Object implements ServerLogoutHandler
A
ServerLogoutHandlerimplementation which writes HTTP headers during logout.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description HeaderWriterServerLogoutHandler(ServerHttpHeadersWriter headersWriter)Constructs a new instance using theServerHttpHeadersWriterimplementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>logout(WebFilterExchange exchange, org.springframework.security.core.Authentication authentication)Invoked when log out is requested
-
-
-
Constructor Detail
-
HeaderWriterServerLogoutHandler
public HeaderWriterServerLogoutHandler(ServerHttpHeadersWriter headersWriter)
Constructs a new instance using the
ServerHttpHeadersWriterimplementation.- Parameters:
headersWriter- aServerHttpHeadersWriterimplementation- Throws:
java.lang.IllegalArgumentException- if the argument is null
-
-
Method Detail
-
logout
public reactor.core.publisher.Mono<java.lang.Void> logout(WebFilterExchange exchange, org.springframework.security.core.Authentication authentication)
Description copied from interface:ServerLogoutHandlerInvoked when log out is requested- Specified by:
logoutin interfaceServerLogoutHandler- Parameters:
exchange- the exchangeauthentication- theAuthentication- Returns:
- a completion notification (success or error)
-
-