public class Google2Profile extends OAuth20Profile
This class is the user profile for Google (using OAuth protocol version 2) with appropriate getters.
It is returned by the Google2Client.
| Method : | From the JSON profile response : |
|---|---|
The attributes of the CommonProfile |
|
| String getEmail() | the email attribute |
| String getFirstName() | the givenName attribute |
| String getFamilyName() | the familyName attribute |
| String getDisplayName() | the displayName attribute |
| String getUsername() | null |
| Gender getGender() | the gender attribute |
| Locale getLocale() | the language attribute |
| String getPictureUrl() | the image.url attribute |
| String getProfileUrl() | the url attribute |
| String getLocation() | null |
| More specific attributes | |
| Date getBirthday() | the birthday attribute |
| List<Google2Email> getEmails() | the emails attribute |
Google2Client,
Serialized FormUSERNAMElogger, SEPARATOR| Constructor and Description |
|---|
Google2Profile() |
| Modifier and Type | Method and Description |
|---|---|
protected AttributesDefinition |
getAttributesDefinition() |
Date |
getBirthday() |
String |
getDisplayName() |
String |
getEmail() |
List<Google2Email> |
getEmails() |
String |
getFamilyName() |
String |
getFirstName() |
Locale |
getLocale() |
String |
getPictureUrl() |
String |
getProfileUrl() |
getAccessToken, setAccessTokengetGender, getLocation, getUsernameaddAttribute, addAttributes, addPermission, addRole, build, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, hasAccess, hasAllRoles, hasAnyRole, isRemembered, setId, setRemembered, toStringprotected AttributesDefinition getAttributesDefinition()
getAttributesDefinition in class UserProfilepublic String getEmail()
getEmail in class CommonProfilepublic String getFirstName()
getFirstName in class CommonProfilepublic String getFamilyName()
getFamilyName in class CommonProfilepublic String getDisplayName()
getDisplayName in class CommonProfilepublic Locale getLocale()
getLocale in class CommonProfilepublic String getPictureUrl()
getPictureUrl in class CommonProfilepublic String getProfileUrl()
getProfileUrl in class CommonProfilepublic Date getBirthday()
public List<Google2Email> getEmails()
Copyright © 2015. All Rights Reserved.