Class OAuth2AuthorizationExchange
- java.lang.Object
-
- org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationExchange
-
public final class OAuth2AuthorizationExchange extends java.lang.Object
An "exchange" of an OAuth 2.0 Authorization Request and Response for the authorization code grant type.- Since:
- 5.0
- See Also:
OAuth2AuthorizationRequest
,OAuth2AuthorizationResponse
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizationExchange(OAuth2AuthorizationRequest authorizationRequest, OAuth2AuthorizationResponse authorizationResponse)
Constructs a newOAuth2AuthorizationExchange
with the provided Authorization Request and Authorization Response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2AuthorizationRequest
getAuthorizationRequest()
Returns theAuthorization Request
.OAuth2AuthorizationResponse
getAuthorizationResponse()
Returns theAuthorization Response
.
-
-
-
Constructor Detail
-
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 Detail
-
getAuthorizationRequest
public OAuth2AuthorizationRequest getAuthorizationRequest()
Returns theAuthorization Request
.- Returns:
- the
OAuth2AuthorizationRequest
-
getAuthorizationResponse
public OAuth2AuthorizationResponse getAuthorizationResponse()
Returns theAuthorization Response
.- Returns:
- the
OAuth2AuthorizationResponse
-
-