Class TokenExchangeGrantRequestEntityConverter
java.lang.Object
org.springframework.security.oauth2.client.endpoint.TokenExchangeGrantRequestEntityConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest,org.springframework.http.RequestEntity<?>>
@Deprecated(since="6.4",
forRemoval=true)
public class TokenExchangeGrantRequestEntityConverter
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 TokenExchangeGrantRequest to a RequestEntity
representation of an OAuth 2.0 Access Token Request for the Token Exchange Grant.- Since:
- 6.3
- See Also:
-
AbstractOAuth2AuthorizationGrantRequestEntityConverterTokenExchangeGrantRequestRequestEntity- Section 1.1 Delegation vs. Impersonation Semantics
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddHeadersConverter(org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest, 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<TokenExchangeGrantRequest, 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(TokenExchangeGrantRequest authorizationGrantRequest) createParameters(TokenExchangeGrantRequest grantRequest) Deprecated, for removal: This API element is subject to removal in a future version.final voidsetHeadersConverter(org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest, 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<TokenExchangeGrantRequest, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
TokenExchangeGrantRequestEntityConverter
public TokenExchangeGrantRequestEntityConverter()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
createParameters
protected org.springframework.util.MultiValueMap<String,String> createParameters(TokenExchangeGrantRequest grantRequest) Deprecated, for removal: This API element is subject to removal in a future version. -
convert
public org.springframework.http.RequestEntity<?> convert(TokenExchangeGrantRequest authorizationGrantRequest) - Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<T extends AbstractOAuth2AuthorizationGrantRequest,org.springframework.http.RequestEntity<?>>
-
setHeadersConverter
public final void setHeadersConverter(org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Sets theConverterused for converting theAbstractOAuth2AuthorizationGrantRequestinstance to aHttpHeadersused in the OAuth 2.0 Access Token Request headers.- Parameters:
headersConverter- theConverterused for converting theOAuth2AuthorizationCodeGrantRequesttoHttpHeaders
-
addHeadersConverter
public final void addHeadersConverter(org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest, 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- theConverterto add (compose) to the currentConverterused for converting theOAuth2AuthorizationCodeGrantRequestto aHttpHeaders
-
setParametersConverter
public final void setParametersConverter(org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest, 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- theConverterused for converting theOAuth2AuthorizationCodeGrantRequestto aMultiValueMapof the parameters
-
addParametersConverter
public final void addParametersConverter(org.springframework.core.convert.converter.Converter<TokenExchangeGrantRequest, 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- theConverterto add (compose) to the currentConverterused for converting theOAuth2AuthorizationCodeGrantRequestto aMultiValueMapof the parameters
-
DefaultOAuth2TokenRequestParametersConverterinstead