クラス ServerHttpSecurity.LogoutSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.LogoutSpec
- 含まれているクラス:
- ServerHttpSecurity
public final class ServerHttpSecurity.LogoutSpec extends java.lang.Objectログアウトを構成します- 導入:
- 5.0
- 関連事項:
ServerHttpSecurity.logout()
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurityand()メソッドチェーンがServerHttpSecurityの構成を続行できるようにしますprotected voidconfigure(ServerHttpSecurity http)ServerHttpSecuritydisable()ログアウトを無効にしますServerHttpSecurity.LogoutSpeclogoutHandler(ServerLogoutHandler logoutHandler)ログアウトハンドラーを構成します。ServerHttpSecurity.LogoutSpeclogoutSuccessHandler(ServerLogoutSuccessHandler handler)ServerHttpSecurity.LogoutSpeclogoutUrl(java.lang.String logoutUrl)POST がログアウトをトリガーする URL を構成します。ServerHttpSecurity.LogoutSpecrequiresLogout(ServerWebExchangeMatcher requiresLogout)ログアウトがトリガーされるタイミングを構成します。
メソッドの詳細
logoutHandler
public ServerHttpSecurity.LogoutSpec logoutHandler(ServerLogoutHandler logoutHandler)
ログアウトハンドラーを構成します。デフォルトはSecurityContextServerLogoutHandlerです- パラメーター:
logoutHandler-- 戻り値:
- 構成する
ServerHttpSecurity.LogoutSpec
logoutUrl
public ServerHttpSecurity.LogoutSpec logoutUrl(java.lang.String logoutUrl)
POST がログアウトをトリガーする URL を構成します。- パラメーター:
logoutUrl- ログアウトをトリガーする URL (つまり、"/signout" は、"/signout" への POST がログアウトをトリガーすることを意味します)- 戻り値:
- 構成する
ServerHttpSecurity.LogoutSpec
requiresLogout
public ServerHttpSecurity.LogoutSpec requiresLogout(ServerWebExchangeMatcher requiresLogout)
ログアウトがトリガーされるタイミングを構成します。- パラメーター:
requiresLogout- ログアウトがトリガーされるタイミングを決定するマッチャー- 戻り値:
- 構成する
ServerHttpSecurity.LogoutSpec
logoutSuccessHandler
public ServerHttpSecurity.LogoutSpec logoutSuccessHandler(ServerLogoutSuccessHandler handler)
and
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurityの構成を続行できるようにします- 戻り値:
ServerHttpSecurityの構成を続行するには
disable
public ServerHttpSecurity disable()
ログアウトを無効にします- 戻り値:
ServerHttpSecurityの構成を続行するには
configure
protected void configure(ServerHttpSecurity http)