public class SecurityContextServerLogoutHandler extends java.lang.Object implements ServerLogoutHandler
ServerLogoutHandler which removes the SecurityContext using the provided
ServerSecurityContextRepository| Constructor and Description |
|---|
SecurityContextServerLogoutHandler() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
logout(WebFilterExchange exchange,
org.springframework.security.core.Authentication authentication)
Invoked when log out is requested
|
void |
setSecurityContextRepository(ServerSecurityContextRepository securityContextRepository)
Sets the
ServerSecurityContextRepository that should be used for logging
out. |
public reactor.core.publisher.Mono<java.lang.Void> logout(WebFilterExchange exchange, org.springframework.security.core.Authentication authentication)
ServerLogoutHandlerlogout in interface ServerLogoutHandlerexchange - the exchangeauthentication - the Authenticationpublic void setSecurityContextRepository(ServerSecurityContextRepository securityContextRepository)
ServerSecurityContextRepository that should be used for logging
out. Default is WebSessionServerSecurityContextRepositorysecurityContextRepository - the ServerSecurityContextRepository
to use.