Class OAuth2AuthorizationExchange
java.lang.Object
org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange
- All Implemented Interfaces:
Serializable
An "exchange" of an OAuth 2.0 Authorization Request and Response for the
authorization code grant type.
- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorDescriptionOAuth2AuthorizationExchange
(OAuth2AuthorizationRequest authorizationRequest, OAuth2AuthorizationResponse authorizationResponse) Constructs a newOAuth2AuthorizationExchange
with 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 newOAuth2AuthorizationExchange
with the provided Authorization Request and Authorization Response.- Parameters:
authorizationRequest
- theAuthorization Request
authorizationResponse
- theAuthorization Response
-
-
Method Details
-
getAuthorizationRequest
Returns theAuthorization Request
.- Returns:
- the
OAuth2AuthorizationRequest
-
getAuthorizationResponse
Returns theAuthorization Response
.- Returns:
- the
OAuth2AuthorizationResponse
-