クラス 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