Class ServerHttpSecurity.LogoutSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.LogoutSpec
-
- Enclosing class:
- ServerHttpSecurity
public final class ServerHttpSecurity.LogoutSpec extends java.lang.ObjectConfigures log out- Since:
- 5.0
- See Also:
ServerHttpSecurity.logout()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurityand()Allows method chaining to continue configuring theServerHttpSecurityprotected voidconfigure(ServerHttpSecurity http)ServerHttpSecuritydisable()Disables log outServerHttpSecurity.LogoutSpeclogoutHandler(ServerLogoutHandler logoutHandler)Configures the logout handler.ServerHttpSecurity.LogoutSpeclogoutSuccessHandler(ServerLogoutSuccessHandler handler)ServerHttpSecurity.LogoutSpeclogoutUrl(java.lang.String logoutUrl)Configures what URL a POST to will trigger a log out.ServerHttpSecurity.LogoutSpecrequiresLogout(ServerWebExchangeMatcher requiresLogout)Configures when the log out will be triggered.
-
-
-
Method Detail
-
logoutHandler
public ServerHttpSecurity.LogoutSpec logoutHandler(ServerLogoutHandler logoutHandler)
Configures the logout handler. Default isSecurityContextServerLogoutHandler- Parameters:
logoutHandler-- Returns:
- the
ServerHttpSecurity.LogoutSpecto configure
-
logoutUrl
public ServerHttpSecurity.LogoutSpec logoutUrl(java.lang.String logoutUrl)
Configures what URL a POST to will trigger a log out.- Parameters:
logoutUrl- the url to trigger a log out (i.e. "/signout" would mean a POST to "/signout" would trigger log out)- Returns:
- the
ServerHttpSecurity.LogoutSpecto configure
-
requiresLogout
public ServerHttpSecurity.LogoutSpec requiresLogout(ServerWebExchangeMatcher requiresLogout)
Configures when the log out will be triggered.- Parameters:
requiresLogout- the matcher to determine when log out is triggered- Returns:
- the
ServerHttpSecurity.LogoutSpecto configure
-
logoutSuccessHandler
public ServerHttpSecurity.LogoutSpec logoutSuccessHandler(ServerLogoutSuccessHandler handler)
-
and
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity- Returns:
- the
ServerHttpSecurityto continue configuring
-
disable
public ServerHttpSecurity disable()
Disables log out- Returns:
- the
ServerHttpSecurityto continue configuring
-
configure
protected void configure(ServerHttpSecurity http)
-
-