Class OAuth2AuthorizationExchange
java.lang.Object
org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange
An "exchange" of an OAuth 2.0 Authorization Request and Response for the
authorization code grant type.
- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AuthorizationExchange(OAuth2AuthorizationRequest authorizationRequest, OAuth2AuthorizationResponse authorizationResponse) Constructs a newOAuth2AuthorizationExchangewith the provided Authorization Request and Authorization Response. -
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthorization Request.Returns theAuthorization Response.
-
Constructor Details
-
OAuth2AuthorizationExchange
public OAuth2AuthorizationExchange(OAuth2AuthorizationRequest authorizationRequest, OAuth2AuthorizationResponse authorizationResponse) Constructs a newOAuth2AuthorizationExchangewith the provided Authorization Request and Authorization Response.- Parameters:
authorizationRequest- theAuthorization RequestauthorizationResponse- theAuthorization Response
-
-
Method Details
-
getAuthorizationRequest
Returns theAuthorization Request.- Returns:
- the
OAuth2AuthorizationRequest
-
getAuthorizationResponse
Returns theAuthorization Response.- Returns:
- the
OAuth2AuthorizationResponse
-