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 Summary
ConstructorsConstructorDescriptionOAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken) Constructs anOAuth2UserRequestusing the provided parameters.OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, Map<String, Object> additionalParameters) Constructs anOAuth2UserRequestusing the provided parameters. - 
Method Summary
Modifier and TypeMethodDescriptionReturns theaccess token.Returns the additional parameters that may be used in the request.Returns theclient registration. 
- 
Constructor Details
- 
OAuth2UserRequest
Constructs anOAuth2UserRequestusing the provided parameters.- Parameters:
 clientRegistration- the client registrationaccessToken- the access token
 - 
OAuth2UserRequest
public OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, Map<String, Object> additionalParameters) Constructs anOAuth2UserRequestusing the provided parameters.- Parameters:
 clientRegistration- the client registrationaccessToken- the access tokenadditionalParameters- the additional parameters, may be empty- Since:
 - 5.1
 
 
 - 
 - 
Method Details
- 
getClientRegistration
Returns theclient registration.- Returns:
 - the 
ClientRegistration 
 - 
getAccessToken
Returns theaccess token.- Returns:
 - the 
OAuth2AccessToken 
 - 
getAdditionalParameters
Returns the additional parameters that may be used in the request.- Returns:
 - a 
Mapof the additional parameters, may be empty. - Since:
 - 5.1
 
 
 -