クラス OAuth2AuthenticationException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.core.OAuth2AuthenticationException
- 実装されたすべてのインターフェース:
SerializableSE
- 既知の直属サブクラス
InvalidBearerTokenException
この例外は、すべての OAuth 2.0 関連の
Authentication
エラーに対してスローされます。たとえば、エラーが発生する可能性のあるシナリオがいくつかあります。
- 認可リクエストまたはトークンリクエストに必須パラメーターがありません
- クライアント識別子が欠落しているか無効です
- 無効または不一致のリダイレクト URI
- リクエストされたスコープは無効、不明、不正な形式です
- リソース所有者または認可サーバーがアクセスリクエストを拒否しました
- クライアント認証に失敗しました
- 指定された認可付与(認可コード、リソース所有者の資格情報)が無効、期限切れ、取り消されています
- 導入:
- 5.0
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明OAuth2AuthenticationException
(StringSE errorCode) 指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。OAuth2AuthenticationException
(OAuth2Error error, StringSE message) 指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。OAuth2AuthenticationException
(OAuth2Error error, StringSE message, ThrowableSE cause) 指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。OAuth2AuthenticationException
(OAuth2Error error, ThrowableSE cause) 指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。メソッドのサマリー
クラス org.springframework.security.core.AuthenticationException から継承されたメソッド
getAuthenticationRequest, setAuthenticationRequest
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
OAuth2AuthenticationException
指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。- パラメーター:
errorCode
-OAuth 2.0 Error Code
- 導入:
- 5.5
OAuth2AuthenticationException
指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。- パラメーター:
error
-OAuth 2.0 Error
OAuth2AuthenticationException
指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。- パラメーター:
error
-OAuth 2.0 Error
cause
- 根本原因
OAuth2AuthenticationException
指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。- パラメーター:
error
-OAuth 2.0 Error
message
- 詳細メッセージ
OAuth2AuthenticationException
指定されたパラメーターを使用してOAuth2AuthenticationException
を構築します。- パラメーター:
error
-OAuth 2.0 Error
message
- 詳細メッセージcause
- 根本原因
メソッドの詳細
getError
OAuth 2.0 Error
を返します。- 戻り値:
OAuth2Error