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:
-
ConverterOAuth2UserRequestRequestEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.RequestEntity<?>convert(OAuth2UserRequest userRequest) Returns theRequestEntityused for the UserInfo Request.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
-
OAuth2UserRequestEntityConverter
public OAuth2UserRequestEntityConverter()
-
-
Method Details
-
convert
Returns theRequestEntityused for the UserInfo Request.- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<OAuth2UserRequest,org.springframework.http.RequestEntity<?>> - Parameters:
userRequest- the user request- Returns:
- the
RequestEntityused for the UserInfo Request
-