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.Object
Configures log out- Since:
- 5.0
- See Also:
ServerHttpSecurity.logout()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurity
and()
Allows method chaining to continue configuring theServerHttpSecurity
protected void
configure(ServerHttpSecurity http)
ServerHttpSecurity
disable()
Disables log outServerHttpSecurity.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.
-
-
-
Method Detail
-
logoutHandler
public ServerHttpSecurity.LogoutSpec logoutHandler(ServerLogoutHandler logoutHandler)
Configures the logout handler. Default isSecurityContextServerLogoutHandler
- Parameters:
logoutHandler
-- Returns:
- the
ServerHttpSecurity.LogoutSpec
to 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.LogoutSpec
to 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.LogoutSpec
to configure
-
logoutSuccessHandler
public ServerHttpSecurity.LogoutSpec logoutSuccessHandler(ServerLogoutSuccessHandler handler)
-
and
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity
- Returns:
- the
ServerHttpSecurity
to continue configuring
-
disable
public ServerHttpSecurity disable()
Disables log out- Returns:
- the
ServerHttpSecurity
to continue configuring
-
configure
protected void configure(ServerHttpSecurity http)
-
-