クラス 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
を構築します。AuthenticationException
(StringSE msg, ThrowableSE cause) 指定されたメッセージと根本原因でAuthenticationException
を構築します。メソッドのサマリー
修飾子と型メソッド説明失敗した認証試行を表すAuthentication
オブジェクトを取得します。void
setAuthenticationRequest
(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