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:
  • Constructor Details

    • OAuth2UserRequestEntityConverter

      public OAuth2UserRequestEntityConverter()
  • Method Details

    • convert

      public org.springframework.http.RequestEntity<?> convert(OAuth2UserRequest userRequest)
      Returns the RequestEntity used for the UserInfo Request.
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<OAuth2UserRequest,org.springframework.http.RequestEntity<?>>
      Parameters:
      userRequest - the user request
      Returns:
      the RequestEntity used for the UserInfo Request