Class NimbusAuthorizationCodeTokenResponseClient
java.lang.Object
org.springframework.security.oauth2.client.endpoint.NimbusAuthorizationCodeTokenResponseClient
- All Implemented Interfaces:
OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>
@Deprecated
public class NimbusAuthorizationCodeTokenResponseClient
extends Object
implements OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>
Deprecated.
An implementation of an
OAuth2AccessTokenResponseClient that
"exchanges" an authorization code credential for an access token credential
at the Authorization Server's Token Endpoint.
NOTE: This implementation uses the Nimbus OAuth 2.0 SDK internally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTokenResponse(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest) Deprecated.Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.
-
Constructor Details
-
NimbusAuthorizationCodeTokenResponseClient
public NimbusAuthorizationCodeTokenResponseClient()Deprecated.
-
-
Method Details
-
getTokenResponse
public OAuth2AccessTokenResponse getTokenResponse(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest) Deprecated.Description copied from interface:OAuth2AccessTokenResponseClientExchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.- Specified by:
getTokenResponsein interfaceOAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>- Parameters:
authorizationGrantRequest- the authorization grant request that contains the authorization grant credential- Returns:
- an
OAuth2AccessTokenResponsethat contains theaccess tokencredential
-
DefaultAuthorizationCodeTokenResponseClient