Class 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<?>>
    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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.RequestEntity<?> convert​(OAuth2UserRequest userRequest)
      Returns the RequestEntity used for the UserInfo Request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OAuth2UserRequestEntityConverter

        public OAuth2UserRequestEntityConverter()
    • Method Detail

      • 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