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,
Authentication authentication) |
void |
setServerSecurityContextRepository(ServerSecurityContextRepository serverSecurityContextRepository)
Sets the
ServerSecurityContextRepository that should be used for logging
out. |
public reactor.core.publisher.Mono<java.lang.Void> logout(WebFilterExchange exchange, Authentication authentication)
logout
in interface ServerLogoutHandler
public void setServerSecurityContextRepository(ServerSecurityContextRepository serverSecurityContextRepository)
ServerSecurityContextRepository
that should be used for logging
out. Default is WebSessionServerSecurityContextRepository
serverSecurityContextRepository
- the ServerSecurityContextRepository
to use.