クラス 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オブジェクトを設定します。
コンストラクターの詳細
AuthenticationException
指定されたメッセージと根本原因でAuthenticationExceptionを構築します。- パラメーター:
msg- 詳細メッセージcause- 根本原因
AuthenticationException
指定されたメッセージを使用し、根本的な原因がないAuthenticationExceptionを構築します。- パラメーター:
msg- 詳細メッセージ
方法の詳細
getAuthenticationRequest
失敗した認証試行を表すAuthenticationオブジェクトを取得します。このフィールドは、試行されましたが最終的に失敗した認証リクエストをキャプチャーし、失敗の診断とデバッグを容易にするための重要な情報を提供します。
- 導入:
- 6.5
setAuthenticationRequest
失敗した認証試行を表すAuthenticationオブジェクトを設定します。指定された
authenticationRequestは null であってはなりません- パラメーター:
authenticationRequest- 失敗した認証試行に関連付けられた認証リクエスト- 導入:
- 6.5