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 FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
Google2Profile() |
Modifier and Type | Method and Description |
---|---|
protected AttributesDefinition |
getAttributesDefinition()
Return the attributes definition for this user profile.
|
Date |
getBirthday() |
String |
getDisplayName()
Return the displayed name of the user.
|
String |
getEmail()
Return the email of the user.
|
List<Google2Email> |
getEmails() |
String |
getFamilyName()
Return the family name of the user.
|
String |
getFirstName()
Return the first name of the user.
|
Locale |
getLocale()
Return the locale of the user.
|
String |
getPictureUrl()
Return the url of the picture of the user.
|
String |
getProfileUrl()
Return the url of the profile of the user.
|
clear, getAccessToken, setAccessToken
getGender, getLocation, getUsername
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, setId, setRemembered, toString, writeExternal
protected AttributesDefinition getAttributesDefinition()
UserProfile
getAttributesDefinition
in class UserProfile
public String getEmail()
CommonProfile
getEmail
in class CommonProfile
public String getFirstName()
CommonProfile
getFirstName
in class CommonProfile
public String getFamilyName()
CommonProfile
getFamilyName
in class CommonProfile
public String getDisplayName()
CommonProfile
getDisplayName
in class CommonProfile
public Locale getLocale()
CommonProfile
getLocale
in class CommonProfile
public String getPictureUrl()
CommonProfile
getPictureUrl
in class CommonProfile
public String getProfileUrl()
CommonProfile
getProfileUrl
in class CommonProfile
public Date getBirthday()
public List<Google2Email> getEmails()
Copyright © 2016. All rights reserved.