クラス ServerHttpSecurity.ExceptionHandlingSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec
- 含まれているクラス:
- ServerHttpSecurity
public final class ServerHttpSecurity.ExceptionHandlingSpec extends java.lang.Object
例外処理を構成します- 導入:
- 5.0
- 関連事項:
ServerHttpSecurity.exceptionHandling()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurity.ExceptionHandlingSpec
accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
認証されたユーザーが必要な権限を持っていない場合の対処方法を構成しますServerHttpSecurity
and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにしますServerHttpSecurity.ExceptionHandlingSpec
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
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにします- 戻り値:
ServerHttpSecurity
の構成を続行するには