クラス ServerHttpSecurity.ExceptionHandlingSpec
java.lang.ObjectSE
org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec
- 含まれているクラス:
ServerHttpSecurity
例外処理を構成します
- 導入:
- 5.0
- 関連事項:
方法の概要
修飾子と型メソッド説明accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler) 認証されたユーザーが必要な権限を持っていない場合の対処方法を構成します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