Class OAuth2Template
- java.lang.Object
-
- org.springframework.social.google.api.impl.AbstractGoogleApiOperations
-
- org.springframework.social.google.api.oauth2.impl.OAuth2Template
-
- All Implemented Interfaces:
OAuth2Operations
public class OAuth2Template extends AbstractGoogleApiOperations implements OAuth2Operations
-
-
Field Summary
-
Fields inherited from class org.springframework.social.google.api.impl.AbstractGoogleApiOperations
isAuthorized, restTemplate
-
-
Constructor Summary
Constructors Constructor Description OAuth2Template(org.springframework.web.client.RestTemplate restTemplate, boolean isAuthorized)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfogetUserinfo()Retrieves the authenticated user's Google user.-
Methods inherited from class org.springframework.social.google.api.impl.AbstractGoogleApiOperations
deleteEntity, deleteEntity, getEntity, patch, requireAuthorization, saveEntity
-
-
-
-
Method Detail
-
getUserinfo
public UserInfo getUserinfo()
Description copied from interface:OAuth2OperationsRetrieves the authenticated user's Google user.- Specified by:
getUserinfoin interfaceOAuth2Operations- Returns:
- the retrieved
Person
-
-