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")
public class OAuth2AuthorizationCodeGrantRequestEntityConverter
extends Object
Deprecated.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
addHeadersConverter
(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Add (compose) the providedheadersConverter
to the currentConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aHttpHeaders
used in the OAuth 2.0 Access Token Request headers.final void
addParametersConverter
(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Add (compose) the providedparametersConverter
to the currentConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aMultiValueMap
of the parameters used in the OAuth 2.0 Access Token Request body.org.springframework.http.RequestEntity<?>
convert
(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest) createParameters
(OAuth2AuthorizationCodeGrantRequest authorizationCodeGrantRequest) Deprecated.final void
setHeadersConverter
(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Sets theConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aHttpHeaders
used in the OAuth 2.0 Access Token Request headers.final void
setParametersConverter
(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Sets theConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aMultiValueMap
of 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, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
OAuth2AuthorizationCodeGrantRequestEntityConverter
public OAuth2AuthorizationCodeGrantRequestEntityConverter()Deprecated.
-
-
Method Details
-
createParameters
protected org.springframework.util.MultiValueMap<String,String> createParameters(OAuth2AuthorizationCodeGrantRequest authorizationCodeGrantRequest) Deprecated. -
convert
public org.springframework.http.RequestEntity<?> convert(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest) - Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<T extends AbstractOAuth2AuthorizationGrantRequest,
org.springframework.http.RequestEntity<?>>
-
setHeadersConverter
public final void setHeadersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Sets theConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aHttpHeaders
used in the OAuth 2.0 Access Token Request headers.- Parameters:
headersConverter
- theConverter
used for converting theOAuth2AuthorizationCodeGrantRequest
toHttpHeaders
-
addHeadersConverter
public final void addHeadersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.http.HttpHeaders> headersConverter) Add (compose) the providedheadersConverter
to the currentConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aHttpHeaders
used in the OAuth 2.0 Access Token Request headers.- Parameters:
headersConverter
- theConverter
to add (compose) to the currentConverter
used for converting theOAuth2AuthorizationCodeGrantRequest
to aHttpHeaders
-
setParametersConverter
public final void setParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Sets theConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aMultiValueMap
of the parameters used in the OAuth 2.0 Access Token Request body.- Parameters:
parametersConverter
- theConverter
used for converting theOAuth2AuthorizationCodeGrantRequest
to aMultiValueMap
of the parameters
-
addParametersConverter
public final void addParametersConverter(org.springframework.core.convert.converter.Converter<OAuth2AuthorizationCodeGrantRequest, org.springframework.util.MultiValueMap<String, String>> parametersConverter) Add (compose) the providedparametersConverter
to the currentConverter
used for converting theAbstractOAuth2AuthorizationGrantRequest
instance to aMultiValueMap
of the parameters used in the OAuth 2.0 Access Token Request body.- Parameters:
parametersConverter
- theConverter
to add (compose) to the currentConverter
used for converting theOAuth2AuthorizationCodeGrantRequest
to aMultiValueMap
of the parameters
-
DefaultOAuth2TokenRequestParametersConverter
instead