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 Object
implements org.springframework.core.convert.converter.Converter<OAuth2UserRequest,org.springframework.http.RequestEntity<?>>
A
Converter
that converts the provided OAuth2UserRequest
to a
RequestEntity
representation of a request for the UserInfo Endpoint.- Since:
- 5.1
- See Also:
-
Converter
OAuth2UserRequest
RequestEntity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.RequestEntity<?>
convert
(OAuth2UserRequest userRequest) Returns theRequestEntity
used for the UserInfo Request.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
-
OAuth2UserRequestEntityConverter
public OAuth2UserRequestEntityConverter()
-
-
Method Details
-
convert
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
-