Class GithubUserInfo
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- org.nuxeo.ecm.platform.oauth2.openid.auth.github.GithubUserInfo
-
- All Implemented Interfaces:
Cloneable
,Map<String,Object>
,OpenIDUserInfo
public class GithubUserInfo extends com.google.api.client.json.GenericJson implements OpenIDUserInfo
Github user info- Since:
- 5.9.5
- Author:
- Arnaud Kervern
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
address
protected String
bio
protected Date
birthdate
protected String
blog
protected String
company
protected String
email
protected boolean
emailVerified
protected String
familyName
protected String
gender
protected String
givenName
protected String
locale
protected String
login
protected String
middleName
protected String
name
protected String
nickname
protected String
phoneNumber
protected String
picture
protected String
preferredUsername
protected String
profile
protected String
subject
protected String
updatedTime
protected String
website
protected String
zoneInfo
-
Constructor Summary
Constructors Constructor Description GithubUserInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getBio()
Date
getBirthdate()
String
getBlog()
String
getCompany()
String
getEmail()
String
getFamilyName()
String
getGender()
String
getGivenName()
String
getLocale()
String
getLogin()
String
getMiddleName()
String
getName()
String
getNickname()
String
getPhoneNumber()
String
getPicture()
String
getPreferredUsername()
String
getProfile()
String
getSubject()
Date
getUpdatedTime()
String
getWebsite()
String
getZoneInfo()
boolean
isEmailVerified()
String
splitNameField(int index)
-
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, set, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
subject
protected String subject
-
name
protected String name
-
givenName
protected String givenName
-
familyName
protected String familyName
-
middleName
protected String middleName
-
nickname
protected String nickname
-
preferredUsername
protected String preferredUsername
-
profile
protected String profile
-
picture
protected String picture
-
website
protected String website
-
email
protected String email
-
emailVerified
protected boolean emailVerified
-
gender
protected String gender
-
birthdate
protected Date birthdate
-
zoneInfo
protected String zoneInfo
-
locale
protected String locale
-
phoneNumber
protected String phoneNumber
-
address
protected String address
-
updatedTime
protected String updatedTime
-
bio
protected String bio
-
blog
protected String blog
-
company
protected String company
-
login
protected String login
-
-
Method Detail
-
getSubject
public String getSubject()
- Specified by:
getSubject
in interfaceOpenIDUserInfo
- Returns:
- Subject - Identifier for the End-User at the Issuer.
-
getName
public String getName()
- Specified by:
getName
in interfaceOpenIDUserInfo
- Returns:
- End-User's full name in displayable form including all name parts, ordered according to End-User's locale and preferences
-
getMiddleName
public String getMiddleName()
- Specified by:
getMiddleName
in interfaceOpenIDUserInfo
- Returns:
- Middle name of the End-User.
-
getPreferredUsername
public String getPreferredUsername()
- Specified by:
getPreferredUsername
in interfaceOpenIDUserInfo
- Returns:
- Shorthand name that the End-User wishes to be referred to.
-
getProfile
public String getProfile()
- Specified by:
getProfile
in interfaceOpenIDUserInfo
- Returns:
- URL of the End-User's profile page.
-
getPicture
public String getPicture()
- Specified by:
getPicture
in interfaceOpenIDUserInfo
- Returns:
- URL of the End-User's profile picture.
-
getWebsite
public String getWebsite()
- Specified by:
getWebsite
in interfaceOpenIDUserInfo
- Returns:
- URL of the End-User's web page or blog.
-
getEmail
public String getEmail()
- Specified by:
getEmail
in interfaceOpenIDUserInfo
- Returns:
- End-User's preferred e-mail address.
-
isEmailVerified
public boolean isEmailVerified()
- Specified by:
isEmailVerified
in interfaceOpenIDUserInfo
- Returns:
- True if the End-User's e-mail address has been verified; otherwise false.
-
getGender
public String getGender()
- Specified by:
getGender
in interfaceOpenIDUserInfo
- Returns:
- End-User's gender. (female or male).
-
getBirthdate
public Date getBirthdate()
- Specified by:
getBirthdate
in interfaceOpenIDUserInfo
- Returns:
- End-User's birthday
-
getZoneInfo
public String getZoneInfo()
- Specified by:
getZoneInfo
in interfaceOpenIDUserInfo
- Returns:
- String from zoneinfo time zone database representing the End-User's time zone.
-
getLocale
public String getLocale()
- Specified by:
getLocale
in interfaceOpenIDUserInfo
- Returns:
- End-User's locale.
-
getPhoneNumber
public String getPhoneNumber()
- Specified by:
getPhoneNumber
in interfaceOpenIDUserInfo
- Returns:
- End-User's preferred telephone number.
-
getAddress
public String getAddress()
- Specified by:
getAddress
in interfaceOpenIDUserInfo
- Returns:
- End-User's preferred address.
-
getUpdatedTime
public Date getUpdatedTime()
- Specified by:
getUpdatedTime
in interfaceOpenIDUserInfo
- Returns:
- Time the End-User's information was last updated.
-
getGivenName
public String getGivenName()
- Specified by:
getGivenName
in interfaceOpenIDUserInfo
- Returns:
- Given name or first name of the End-User.
-
getFamilyName
public String getFamilyName()
- Specified by:
getFamilyName
in interfaceOpenIDUserInfo
- Returns:
- Surname or last name of the End-User.
-
getNickname
public String getNickname()
- Specified by:
getNickname
in interfaceOpenIDUserInfo
- Returns:
- Casual name of the End-User that may or may not be the same as the given_name.
-
getBlog
public String getBlog()
-
getBio
public String getBio()
-
getCompany
public String getCompany()
-
getLogin
public String getLogin()
-
splitNameField
public String splitNameField(int index)
-
-