クラス HttpStatusReturningServerLogoutSuccessHandler
java.lang.ObjectSE
org.springframework.security.web.server.authentication.logout.HttpStatusReturningServerLogoutSuccessHandler
- 実装されたすべてのインターフェース:
ServerLogoutSuccessHandler
public class HttpStatusReturningServerLogoutSuccessHandler
extends ObjectSE
implements ServerLogoutSuccessHandler
ServerLogoutSuccessHandler
の実装。デフォルトでは、200
の HTTP ステータスコードを返します。これは、ログアウトが成功したときのリダイレクトが望ましくない REST 型のシナリオで役立ちます。- 導入:
- 5.1
コンストラクターのサマリー
コンストラクターコンストラクター説明HttpStatusReturningServerLogoutSuccessHandler
をデフォルトのHttpStatus.OK
で初期化します。HttpStatusReturningServerLogoutSuccessHandler
(org.springframework.http.HttpStatus httpStatusToReturn) ユーザー定義のHttpStatus
でHttpStatusReturningServerLogoutSuccessHandler
を初期化します。メソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<VoidSE>
onLogoutSuccess
(WebFilterExchange exchange, Authentication authentication)
コンストラクターの詳細
HttpStatusReturningServerLogoutSuccessHandler
public HttpStatusReturningServerLogoutSuccessHandler(org.springframework.http.HttpStatus httpStatusToReturn) ユーザー定義のHttpStatus
でHttpStatusReturningServerLogoutSuccessHandler
を初期化します。- パラメーター:
httpStatusToReturn
-null
であってはなりません。
HttpStatusReturningServerLogoutSuccessHandler
public HttpStatusReturningServerLogoutSuccessHandler()HttpStatusReturningServerLogoutSuccessHandler
をデフォルトのHttpStatus.OK
で初期化します。
メソッドの詳細
onLogoutSuccess
public reactor.core.publisher.Mono<VoidSE> onLogoutSuccess(WebFilterExchange exchange, Authentication authentication) ServerLogoutSuccessHandler.onLogoutSuccess(WebFilterExchange, Authentication)
の実装。WebFilterExchange
のステータスを設定します。- 次で指定:
- インターフェース
ServerLogoutSuccessHandler
のonLogoutSuccess
- パラメーター:
exchange
- 交換authentication
-Authentication
- 戻り値:
- 完了通知 (成功またはエラー)