クラス DefaultAuthorizationCodeTokenResponseClient
java.lang.ObjectSE
org.springframework.security.oauth2.client.endpoint.DefaultAuthorizationCodeTokenResponseClient
- 実装されたすべてのインターフェース:
OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>
public final class DefaultAuthorizationCodeTokenResponseClient
extends ObjectSE
implements OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>
authorization_code
認可の OAuth2AccessTokenResponseClient
のデフォルト実装。この実装は、認可サーバーのトークンエンドポイントでアクセストークン資格情報をリクエストするときに RestOperations
を使用します。コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明getTokenResponse
(OAuth2AuthorizationCodeGrantRequest authorizationCodeGrantRequest) 認可サーバーのトークンエンドポイントでアクセストークン資格情報の認可付与リクエストで提供された認可付与資格情報を交換します。void
setRequestEntityConverter
(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.RequestEntity<?>> requestEntityConverter) OAuth2AuthorizationCodeGrantRequest
を OAuth 2.0 アクセストークンリクエストのRequestEntity
表現に変換するために使用されるConverter
を設定します。void
setRestOperations
(org.springframework.web.client.RestOperations restOperations) OAuth 2.0 アクセストークンレスポンスをリクエストするときに使用されるRestOperations
を設定します。
コンストラクターの詳細
DefaultAuthorizationCodeTokenResponseClient
public DefaultAuthorizationCodeTokenResponseClient()
メソッドの詳細
getTokenResponse
public OAuth2AccessTokenResponse getTokenResponse(OAuth2AuthorizationCodeGrantRequest authorizationCodeGrantRequest) インターフェースからコピーされた説明:OAuth2AccessTokenResponseClient
認可サーバーのトークンエンドポイントでアクセストークン資格情報の認可付与リクエストで提供された認可付与資格情報を交換します。- 次で指定:
- インターフェース
OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>
のgetTokenResponse
- パラメーター:
authorizationCodeGrantRequest
- 認可付与資格証明を含む認可付与リクエスト- 戻り値:
access token
資格情報を含むOAuth2AccessTokenResponse
setRequestEntityConverter
public void setRequestEntityConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.RequestEntity<?>> requestEntityConverter) OAuth2AuthorizationCodeGrantRequest
を OAuth 2.0 アクセストークンリクエストのRequestEntity
表現に変換するために使用されるConverter
を設定します。- パラメーター:
requestEntityConverter
- アクセストークンリクエストのRequestEntity
表現への変換に使用されるConverter
setRestOperations
public void setRestOperations(org.springframework.web.client.RestOperations restOperations) OAuth 2.0 アクセストークンレスポンスをリクエストするときに使用されるRestOperations
を設定します。注意 : 少なくとも、提供されている
restOperations
は、以下で構成する必要があります。HttpMessageConverter
の -FormHttpMessageConverter
およびOAuth2AccessTokenResponseHttpMessageConverter
ResponseErrorHandler
-OAuth2ErrorResponseErrorHandler
- パラメーター:
restOperations
- アクセストークンレスポンスをリクエストするときに使用されるRestOperations