Package org.pac4j.oauth.profile.github
Class GitHubProfile
- java.lang.Object
-
- org.pac4j.core.profile.BasicUserProfile
-
- org.pac4j.core.profile.CommonProfile
-
- org.pac4j.oauth.profile.OAuth20Profile
-
- org.pac4j.oauth.profile.github.GitHubProfile
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,org.pac4j.core.profile.UserProfile
public class GitHubProfile extends OAuth20Profile
This class is the user profile for GitHub with appropriate getters.
It is returned by the
GitHubClient.- Since:
- 1.1.0
- Author:
- Jerome Leleu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GitHubProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBio()java.lang.StringgetBlog()java.lang.IntegergetCollaborators()java.lang.StringgetCompany()java.util.DategetCreatedAt()java.lang.IntegergetDiskUsage()java.lang.StringgetDisplayName()java.lang.IntegergetFollowers()java.lang.IntegergetFollowing()java.lang.StringgetGravatarId()java.lang.BooleangetHireable()java.lang.IntegergetOwnedPrivateRepos()java.net.URIgetPictureUrl()GitHubPlangetPlan()java.lang.IntegergetPrivateGists()java.net.URIgetProfileUrl()java.lang.IntegergetPublicGists()java.lang.IntegergetPublicRepos()java.lang.IntegergetTotalPrivateRepos()java.lang.StringgetType()java.util.DategetUpdatedAt()java.lang.StringgetUrl()java.lang.StringgetUsername()-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, removeLoginData, setAccessToken
-
Methods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, isExpired
-
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addPermission, addPermissions, addRole, addRoles, asPrincipal, build, build, containsAttribute, containsAuthenicationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setPermissions, setRemembered, setRoles, toString, writeExternal
-
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayNamein classorg.pac4j.core.profile.CommonProfile
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsernamein interfaceorg.pac4j.core.profile.UserProfile- Overrides:
getUsernamein classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
public java.net.URI getPictureUrl()
- Overrides:
getPictureUrlin classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
public java.net.URI getProfileUrl()
- Overrides:
getProfileUrlin classorg.pac4j.core.profile.CommonProfile
-
getCompany
public java.lang.String getCompany()
-
getFollowing
public java.lang.Integer getFollowing()
-
getBlog
public java.lang.String getBlog()
-
getPublicRepos
public java.lang.Integer getPublicRepos()
-
getPublicGists
public java.lang.Integer getPublicGists()
-
getDiskUsage
public java.lang.Integer getDiskUsage()
-
getCollaborators
public java.lang.Integer getCollaborators()
-
getPlan
public GitHubPlan getPlan()
-
getOwnedPrivateRepos
public java.lang.Integer getOwnedPrivateRepos()
-
getTotalPrivateRepos
public java.lang.Integer getTotalPrivateRepos()
-
getPrivateGists
public java.lang.Integer getPrivateGists()
-
getFollowers
public java.lang.Integer getFollowers()
-
getCreatedAt
public java.util.Date getCreatedAt()
-
getUpdatedAt
public java.util.Date getUpdatedAt()
-
getType
public java.lang.String getType()
-
getGravatarId
public java.lang.String getGravatarId()
-
getUrl
public java.lang.String getUrl()
-
getHireable
public java.lang.Boolean getHireable()
-
getBio
public java.lang.String getBio()
-
-