public class OAuth2UserRequest
extends java.lang.Object
OAuth2UserService
uses when initiating a request to
the UserInfo Endpoint.ClientRegistration
,
OAuth2AccessToken
,
OAuth2UserService
Constructor and Description |
---|
OAuth2UserRequest(ClientRegistration clientRegistration,
OAuth2AccessToken accessToken)
Constructs an
OAuth2UserRequest using the provided parameters. |
OAuth2UserRequest(ClientRegistration clientRegistration,
OAuth2AccessToken accessToken,
java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
Constructs an
OAuth2UserRequest using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
getAccessToken()
Returns the
access token . |
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalParameters()
Returns the additional parameters that may be used in the request.
|
ClientRegistration |
getClientRegistration()
Returns the
client registration . |
public OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken)
OAuth2UserRequest
using the provided parameters.clientRegistration
- the client registrationaccessToken
- the access tokenpublic OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
OAuth2UserRequest
using the provided parameters.clientRegistration
- the client registrationaccessToken
- the access tokenadditionalParameters
- the additional parameters, may be emptypublic ClientRegistration getClientRegistration()
client registration
.ClientRegistration
public OAuth2AccessToken getAccessToken()
access token
.OAuth2AccessToken
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalParameters()
Map
of the additional parameters, may be empty.