クラス ServerHttpSecurity.ExceptionHandlingSpec
java.lang.ObjectSE
org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec
- 含まれているクラス:
- ServerHttpSecurity
例外処理を構成します
- 導入:
- 5.0
- 関連事項:
メソッドのサマリー
修飾子と型メソッド説明accessDeniedHandler
(ServerAccessDeniedHandler accessDeniedHandler) 認証されたユーザーが必要な権限を持っていない場合の対処方法を構成しますand()
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。7.0 の取り外し用。authenticationEntryPoint
(ServerAuthenticationEntryPoint authenticationEntryPoint) アプリケーションが認証をリクエストしたときに何をするかを構成します
メソッドの詳細
authenticationEntryPoint
public ServerHttpSecurity.ExceptionHandlingSpec authenticationEntryPoint(ServerAuthenticationEntryPoint authenticationEntryPoint) アプリケーションが認証をリクエストしたときに何をするかを構成します- パラメーター:
authenticationEntryPoint
- 使用するエントリポイント- 戻り値:
- 構成する
ServerHttpSecurity.ExceptionHandlingSpec
accessDeniedHandler
public ServerHttpSecurity.ExceptionHandlingSpec accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler) 認証されたユーザーが必要な権限を持っていない場合の対処方法を構成します- パラメーター:
accessDeniedHandler
- 使用するアクセス拒否ハンドラー- 戻り値:
- 構成する
ServerHttpSecurity.ExceptionHandlingSpec
- 導入:
- 5.0.5
and
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。7.0 の取り外し用。代わりにServerHttpSecurity.exceptionHandling(Customizer)
を使用してくださいメソッドチェーンがServerHttpSecurity
の構成を続行できるようにします- 戻り値:
ServerHttpSecurity
の構成を続行するには