Class HeaderWriterServerLogoutHandler
java.lang.Object
org.springframework.security.web.server.authentication.logout.HeaderWriterServerLogoutHandler
- All Implemented Interfaces:
ServerLogoutHandler
A ServerLogoutHandler
implementation which writes HTTP headers during logout.
- Since:
- 5.2
-
Constructor Summary
ConstructorDescriptionHeaderWriterServerLogoutHandler
(ServerHttpHeadersWriter headersWriter) Constructs a new instance using theServerHttpHeadersWriter
implementation. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
logout
(WebFilterExchange exchange, Authentication authentication) Invoked when log out is requested
-
Constructor Details
-
HeaderWriterServerLogoutHandler
Constructs a new instance using the
ServerHttpHeadersWriter
implementation.- Parameters:
headersWriter
- aServerHttpHeadersWriter
implementation- Throws:
IllegalArgumentException
- if the argument is null
-
-
Method Details
-
logout
public reactor.core.publisher.Mono<Void> logout(WebFilterExchange exchange, Authentication authentication) Description copied from interface:ServerLogoutHandler
Invoked when log out is requested- Specified by:
logout
in interfaceServerLogoutHandler
- Parameters:
exchange
- the exchangeauthentication
- theAuthentication
- Returns:
- a completion notification (success or error)
-