Class OAuth2AuthorizationCodeGrantRequest
java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest
An OAuth 2.0 Authorization Code Grant request that holds an Authorization Code
credential, which was granted by the Resource Owner to the
Client
.-
Constructor Summary
ConstructorDescriptionOAuth2AuthorizationCodeGrantRequest
(ClientRegistration clientRegistration, OAuth2AuthorizationExchange authorizationExchange) Constructs anOAuth2AuthorizationCodeGrantRequest
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
getClientRegistration, getGrantType
-
Constructor Details
-
OAuth2AuthorizationCodeGrantRequest
public OAuth2AuthorizationCodeGrantRequest(ClientRegistration clientRegistration, OAuth2AuthorizationExchange authorizationExchange) Constructs anOAuth2AuthorizationCodeGrantRequest
using the provided parameters.- Parameters:
clientRegistration
- the client registrationauthorizationExchange
- the authorization exchange
-
-
Method Details
-
getAuthorizationExchange
Returns theauthorization exchange
.- Returns:
- the
OAuth2AuthorizationExchange
-