public final class ServerHttpSecurity.LogoutSpec
extends java.lang.Object
ServerHttpSecurity.logout()
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity |
disable()
Disables log out
|
ServerHttpSecurity.LogoutSpec |
logoutHandler(ServerLogoutHandler logoutHandler)
Configures the logout handler.
|
ServerHttpSecurity.LogoutSpec |
logoutSuccessHandler(ServerLogoutSuccessHandler handler) |
ServerHttpSecurity.LogoutSpec |
logoutUrl(java.lang.String logoutUrl)
Configures what URL a POST to will trigger a log out.
|
ServerHttpSecurity.LogoutSpec |
requiresLogout(ServerWebExchangeMatcher requiresLogout)
Configures when the log out will be triggered.
|
public ServerHttpSecurity.LogoutSpec logoutHandler(ServerLogoutHandler logoutHandler)
SecurityContextServerLogoutHandler
logoutHandler
- public ServerHttpSecurity.LogoutSpec logoutUrl(java.lang.String logoutUrl)
logoutUrl
- the url to trigger a log out (i.e. "/signout" would mean a POST to "/signout" would trigger
log out)ServerHttpSecurity.LogoutSpec
to configurepublic ServerHttpSecurity.LogoutSpec requiresLogout(ServerWebExchangeMatcher requiresLogout)
requiresLogout
- the matcher to determine when log out is triggeredServerHttpSecurity.LogoutSpec
to configurepublic ServerHttpSecurity.LogoutSpec logoutSuccessHandler(ServerLogoutSuccessHandler handler)
public ServerHttpSecurity and()
ServerHttpSecurity
ServerHttpSecurity
to continue configuringpublic ServerHttpSecurity disable()
ServerHttpSecurity
to continue configuringprotected void configure(ServerHttpSecurity http)