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. |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
getAccessToken()
Returns the
access token . |
ClientRegistration |
getClientRegistration()
Returns the
client registration . |
public OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken)
OAuth2UserRequest
using the provided parameters.clientRegistration
- the client registrationaccessToken
- the access tokenpublic ClientRegistration getClientRegistration()
client registration
.ClientRegistration
public OAuth2AccessToken getAccessToken()
access token
.OAuth2AccessToken