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.String
getBio()
java.lang.String
getBlog()
java.lang.Integer
getCollaborators()
java.lang.String
getCompany()
java.util.Date
getCreatedAt()
java.lang.Integer
getDiskUsage()
java.lang.String
getDisplayName()
java.lang.Integer
getFollowers()
java.lang.Integer
getFollowing()
java.lang.String
getGravatarId()
java.lang.Boolean
getHireable()
java.lang.Integer
getOwnedPrivateRepos()
java.net.URI
getPictureUrl()
GitHubPlan
getPlan()
java.lang.Integer
getPrivateGists()
java.net.URI
getProfileUrl()
java.lang.Integer
getPublicGists()
java.lang.Integer
getPublicRepos()
java.lang.Integer
getTotalPrivateRepos()
java.lang.String
getType()
java.util.Date
getUpdatedAt()
java.lang.String
getUrl()
java.lang.String
getUsername()
-
Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, getRefreshToken, removeLoginData, setAccessToken, setRefreshToken
-
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:
getDisplayName
in classorg.pac4j.core.profile.CommonProfile
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceorg.pac4j.core.profile.UserProfile
- Overrides:
getUsername
in classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
public java.net.URI getPictureUrl()
- Overrides:
getPictureUrl
in classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
public java.net.URI getProfileUrl()
- Overrides:
getProfileUrl
in 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()
-
-