Class OAuth2UserRequestEntityConverter
- java.lang.Object
-
- org.springframework.security.oauth2.client.userinfo.OAuth2UserRequestEntityConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<OAuth2UserRequest,org.springframework.http.RequestEntity<?>>
public class OAuth2UserRequestEntityConverter extends java.lang.Object implements org.springframework.core.convert.converter.Converter<OAuth2UserRequest,org.springframework.http.RequestEntity<?>>
AConverter
that converts the providedOAuth2UserRequest
to aRequestEntity
representation of a request for the UserInfo Endpoint.- Since:
- 5.1
- See Also:
Converter
,OAuth2UserRequest
,RequestEntity
-
-
Constructor Summary
Constructors Constructor Description OAuth2UserRequestEntityConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.RequestEntity<?>
convert(OAuth2UserRequest userRequest)
Returns theRequestEntity
used for the UserInfo Request.
-
-
-
Method Detail
-
convert
public org.springframework.http.RequestEntity<?> convert(OAuth2UserRequest userRequest)
Returns theRequestEntity
used for the UserInfo Request.- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<OAuth2UserRequest,org.springframework.http.RequestEntity<?>>
- Parameters:
userRequest
- the user request- Returns:
- the
RequestEntity
used for the UserInfo Request
-
-