Class OAuth2ClientCredentialsGrantRequestEntityConverter
- java.lang.Object
-
- org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequestEntityConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<OAuth2ClientCredentialsGrantRequest,org.springframework.http.RequestEntity<?>>
public class OAuth2ClientCredentialsGrantRequestEntityConverter extends java.lang.Object implements org.springframework.core.convert.converter.Converter<OAuth2ClientCredentialsGrantRequest,org.springframework.http.RequestEntity<?>>
AConverter
that converts the providedOAuth2ClientCredentialsGrantRequest
to aRequestEntity
representation of an OAuth 2.0 Access Token Request for the Client Credentials Grant.- Since:
- 5.1
- See Also:
Converter
,OAuth2ClientCredentialsGrantRequest
,RequestEntity
-
-
Constructor Summary
Constructors Constructor Description OAuth2ClientCredentialsGrantRequestEntityConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.RequestEntity<?>
convert(OAuth2ClientCredentialsGrantRequest clientCredentialsGrantRequest)
Returns theRequestEntity
used for the Access Token Request.
-
-
-
Method Detail
-
convert
public org.springframework.http.RequestEntity<?> convert(OAuth2ClientCredentialsGrantRequest clientCredentialsGrantRequest)
Returns theRequestEntity
used for the Access Token Request.- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<OAuth2ClientCredentialsGrantRequest,org.springframework.http.RequestEntity<?>>
- Parameters:
clientCredentialsGrantRequest
- the client credentials grant request- Returns:
- the
RequestEntity
used for the Access Token Request
-
-