クラス AuthenticationEntryPointFailureHandler
java.lang.ObjectSE
org.springframework.security.web.authentication.AuthenticationEntryPointFailureHandler
- 実装されたすべてのインターフェース:
AuthenticationFailureHandler
public class AuthenticationEntryPointFailureHandler
extends ObjectSE
implements AuthenticationFailureHandler
- 導入:
- 5.2.0
コンストラクターの概要
コンストラクターコンストラクター説明AuthenticationEntryPointFailureHandler
(AuthenticationEntryPoint authenticationEntryPoint) メソッドのサマリー
修飾子と型メソッド説明void
onAuthenticationFailure
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException exception) 認証の試行が失敗したときに呼び出されます。void
setRethrowAuthenticationServiceException
(boolean rethrowAuthenticationServiceException) AuthenticationServiceException
を再スローするかどうかを設定します (デフォルトは true)
コンストラクターの詳細
AuthenticationEntryPointFailureHandler
メソッドの詳細
onAuthenticationFailure
public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException exception) throws IOExceptionSE, jakarta.servlet.ServletException インターフェースからコピーされた説明:AuthenticationFailureHandler
認証の試行が失敗したときに呼び出されます。- 次で指定:
- インターフェース
AuthenticationFailureHandler
のonAuthenticationFailure
- パラメーター:
request
- 認証試行が発生したリクエスト。response
- レスポンス。exception
- 認証リクエストを拒否するためにスローされた例外。- 例外:
IOExceptionSE
jakarta.servlet.ServletException
setRethrowAuthenticationServiceException
public void setRethrowAuthenticationServiceException(boolean rethrowAuthenticationServiceException) AuthenticationServiceException
を再スローするかどうかを設定します (デフォルトは true)- パラメーター:
rethrowAuthenticationServiceException
-AuthenticationServiceException
を再スローするかどうか- 導入:
- 5.8