クラス SecurityContextServerLogoutHandler
java.lang.ObjectSE
org.springframework.security.web.server.authentication.logout.SecurityContextServerLogoutHandler
- 実装されているすべてのインターフェース:
ServerLogoutHandler
提供された
ServerSecurityContextRepository を使用して SecurityContext を削除する ServerLogoutHandler- 導入:
- 5.0
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<VoidSE>logout(WebFilterExchange exchange, Authentication authentication) ログアウトがリクエストされたときに呼び出されますvoidsetSecurityContextRepository(ServerSecurityContextRepository securityContextRepository) ログアウトに使用するServerSecurityContextRepositoryを設定します。
コンストラクターの詳細
SecurityContextServerLogoutHandler
public SecurityContextServerLogoutHandler()
メソッドの詳細
logout
public reactor.core.publisher.Mono<VoidSE> logout(WebFilterExchange exchange, Authentication authentication) インターフェースからコピーされた説明:ServerLogoutHandlerログアウトがリクエストされたときに呼び出されます- 次で指定:
- インターフェース
ServerLogoutHandlerのlogout - パラメーター:
exchange- 交換authentication-Authentication- 戻り値:
- 完了通知 (成功またはエラー)
setSecurityContextRepository
ログアウトに使用するServerSecurityContextRepositoryを設定します。デフォルトはWebSessionServerSecurityContextRepositoryです- パラメーター:
securityContextRepository- 使用するServerSecurityContextRepository。