Class OAuth2AuthorizationCodeGrantRequest
- java.lang.Object
-
- org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
-
- org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest
-
public class OAuth2AuthorizationCodeGrantRequest extends AbstractOAuth2AuthorizationGrantRequest
An OAuth 2.0 Authorization Code Grant request that holds an Authorization Code credential, which was granted by the Resource Owner to theClient.
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizationCodeGrantRequest(ClientRegistration clientRegistration, OAuth2AuthorizationExchange authorizationExchange)Constructs anOAuth2AuthorizationCodeGrantRequestusing the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2AuthorizationExchangegetAuthorizationExchange()Returns theauthorization exchange.-
Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
getClientRegistration, getGrantType
-
-
-
-
Constructor Detail
-
OAuth2AuthorizationCodeGrantRequest
public OAuth2AuthorizationCodeGrantRequest(ClientRegistration clientRegistration, OAuth2AuthorizationExchange authorizationExchange)
Constructs anOAuth2AuthorizationCodeGrantRequestusing the provided parameters.- Parameters:
clientRegistration- the client registrationauthorizationExchange- the authorization exchange
-
-
Method Detail
-
getAuthorizationExchange
public OAuth2AuthorizationExchange getAuthorizationExchange()
Returns theauthorization exchange.- Returns:
- the
OAuth2AuthorizationExchange
-
-