クラス AuthenticationException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.security.core.AuthenticationException
- 実装されているすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
AccountStatusException、ActiveDirectoryAuthenticationException、AuthenticationCredentialsNotFoundException、AuthenticationServiceException、BadCredentialsException、CompromisedPasswordException、InsufficientAuthenticationException、InvalidOneTimeTokenException、NonceExpiredException、OAuth2AuthenticationException、PreAuthenticatedCredentialsNotFoundException、ProviderNotFoundException、RememberMeAuthenticationException、Saml2AuthenticationException、SessionAuthenticationException、UsernameNotFoundException
Authentication オブジェクトに関連するすべての例外の抽象スーパークラスは、何らかの理由で無効です。- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明AuthenticationException(@Nullable StringSE msg) 指定されたメッセージを使用し、根本的な原因がないAuthenticationExceptionを構築します。AuthenticationException(@Nullable StringSE msg, ThrowableSE cause) 指定されたメッセージと根本原因でAuthenticationExceptionを構築します。メソッドのサマリー
修飾子と型メソッド説明@Nullable Authentication失敗した認証試行を表すAuthenticationオブジェクトを取得します。voidsetAuthenticationRequest(@Nullable Authentication authenticationRequest) 失敗した認証試行を表すAuthenticationオブジェクトを設定します。クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
AuthenticationException
指定されたメッセージと根本原因でAuthenticationExceptionを構築します。- パラメーター:
msg- 詳細メッセージcause- 根本原因
AuthenticationException
指定されたメッセージを使用し、根本的な原因がないAuthenticationExceptionを構築します。- パラメーター:
msg- 詳細メッセージ
メソッドの詳細
getAuthenticationRequest
失敗した認証試行を表すAuthenticationオブジェクトを取得します。このフィールドは、試行されましたが最終的に失敗した認証リクエストをキャプチャーし、失敗の診断とデバッグを容易にするための重要な情報を提供します。
- 導入:
- 6.5
setAuthenticationRequest
失敗した認証試行を表すAuthenticationオブジェクトを設定します。指定された
authenticationRequestは null であってはなりません- パラメーター:
authenticationRequest- 失敗した認証試行に関連付けられた認証リクエスト- 導入:
- 6.5