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 the Client.
Since:
5.0
See Also:
  • Constructor Details

    • OAuth2AuthorizationCodeGrantRequest

      public OAuth2AuthorizationCodeGrantRequest(ClientRegistration clientRegistration, org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange authorizationExchange)
      Constructs an OAuth2AuthorizationCodeGrantRequest using the provided parameters.
      Parameters:
      clientRegistration - the client registration
      authorizationExchange - the authorization exchange
  • Method Details

    • getAuthorizationExchange

      public org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange getAuthorizationExchange()
      Returns the authorization exchange.
      Returns:
      the OAuth2AuthorizationExchange