Class OAuth2AuthorizationCodeGrantRequestEntityConverter
java.lang.Object
org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequestEntityConverter
- All Implemented Interfaces:
- org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest,- org.springframework.http.RequestEntity<?>> 
@Deprecated(since="6.4",
            forRemoval=true)
public class OAuth2AuthorizationCodeGrantRequestEntityConverter
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
An implementation of an 
AbstractOAuth2AuthorizationGrantRequestEntityConverter
 that converts the provided OAuth2AuthorizationCodeGrantRequest to a
 RequestEntity representation of an OAuth 2.0 Access Token Request for the
 Authorization Code Grant.- Since:
- 5.1
- See Also:
- 
- AbstractOAuth2AuthorizationGrantRequestEntityConverter
- OAuth2AuthorizationCodeGrantRequest
- RequestEntity
 
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidaddHeadersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Add (compose) the providedheadersConverterto the currentConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aHttpHeadersused in the OAuth 2.0 Access Token Request headers.final voidaddParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Add (compose) the providedparametersConverterto the currentConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aMultiValueMapof the parameters used in the OAuth 2.0 Access Token Request body.org.springframework.http.RequestEntity<?>convert(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest) createParameters(OAuth2AuthorizationCodeGrantRequest authorizationCodeGrantRequest) Deprecated, for removal: This API element is subject to removal in a future version.final voidsetHeadersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Sets theConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aHttpHeadersused in the OAuth 2.0 Access Token Request headers.final voidsetParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Sets theConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aMultiValueMapof the parameters used in the OAuth 2.0 Access Token Request body.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.ConverterandThen
- 
Constructor Details- 
OAuth2AuthorizationCodeGrantRequestEntityConverterpublic OAuth2AuthorizationCodeGrantRequestEntityConverter()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
createParametersprotected org.springframework.util.MultiValueMap<String,String> createParameters(OAuth2AuthorizationCodeGrantRequest authorizationCodeGrantRequest) Deprecated, for removal: This API element is subject to removal in a future version.
- 
convertpublic org.springframework.http.RequestEntity<?> convert(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest) - Specified by:
- convertin interface- org.springframework.core.convert.converter.Converter<T extends AbstractOAuth2AuthorizationGrantRequest,- org.springframework.http.RequestEntity<?>> 
 
- 
setHeadersConverterpublic final void setHeadersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Sets theConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aHttpHeadersused in the OAuth 2.0 Access Token Request headers.- Parameters:
- headersConverter- the- Converterused for converting the- OAuth2AuthorizationCodeGrantRequestto- HttpHeaders
 
- 
addHeadersConverterpublic final void addHeadersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Add (compose) the providedheadersConverterto the currentConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aHttpHeadersused in the OAuth 2.0 Access Token Request headers.- Parameters:
- headersConverter- the- Converterto add (compose) to the current- Converterused for converting the- OAuth2AuthorizationCodeGrantRequestto a- HttpHeaders
 
- 
setParametersConverterpublic final void setParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Sets theConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aMultiValueMapof the parameters used in the OAuth 2.0 Access Token Request body.- Parameters:
- parametersConverter- the- Converterused for converting the- OAuth2AuthorizationCodeGrantRequestto a- MultiValueMapof the parameters
 
- 
addParametersConverterpublic final void addParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Add (compose) the providedparametersConverterto the currentConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aMultiValueMapof the parameters used in the OAuth 2.0 Access Token Request body.- Parameters:
- parametersConverter- the- Converterto add (compose) to the current- Converterused for converting the- OAuth2AuthorizationCodeGrantRequestto a- MultiValueMapof the parameters
 
 
- 
DefaultOAuth2TokenRequestParametersConverterinstead