Class OAuth2UserRequest
java.lang.Object
org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest
- Direct Known Subclasses:
- OidcUserRequest
Represents a request the 
OAuth2UserService uses when initiating a request to
 the UserInfo Endpoint.- Since:
- 5.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionOAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken) Constructs anOAuth2UserRequestusing the provided parameters.OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, Map<String, Object> additionalParameters) Constructs anOAuth2UserRequestusing the provided parameters.
- 
Method SummaryModifier and TypeMethodDescriptionReturns theaccess token.Returns the additional parameters that may be used in the request.Returns theclient registration.
- 
Constructor Details- 
OAuth2UserRequestConstructs anOAuth2UserRequestusing the provided parameters.- Parameters:
- clientRegistration- the client registration
- accessToken- the access token
 
- 
OAuth2UserRequestpublic OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, Map<String, Object> additionalParameters) Constructs anOAuth2UserRequestusing the provided parameters.- Parameters:
- clientRegistration- the client registration
- accessToken- the access token
- additionalParameters- the additional parameters, may be empty
- Since:
- 5.1
 
 
- 
- 
Method Details- 
getClientRegistrationReturns theclient registration.- Returns:
- the ClientRegistration
 
- 
getAccessTokenReturns theaccess token.- Returns:
- the OAuth2AccessToken
 
- 
getAdditionalParametersReturns the additional parameters that may be used in the request.- Returns:
- a Mapof the additional parameters, may be empty.
- Since:
- 5.1
 
 
-