public interface OAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>
AbstractOAuth2AuthorizationGrantRequest
,
OAuth2AccessTokenResponse
,
AuthorizationGrantType
,
Section 1.3 Authorization Grant,
Section 4.1.3 Access Token Request (Authorization Code Grant),
Section 4.1.4 Access Token Response (Authorization Code Grant)Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse |
getTokenResponse(T authorizationGrantRequest)
Exchanges the authorization grant credential, provided in the authorization grant request,
for an access token credential at the Authorization Server's Token Endpoint.
|
org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse getTokenResponse(T authorizationGrantRequest) throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
authorizationGrantRequest
- the authorization grant request that contains the authorization grant credentialOAuth2AccessTokenResponse
that contains the access token
credentialorg.springframework.security.oauth2.core.OAuth2AuthenticationException
- if an error occurs while attempting to exchange for the access token credential