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:
Externalizable
,Serializable
,org.pac4j.core.profile.UserProfile
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:
-
Field Summary
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBio()
getBio.getBlog()
getBlog.getCollaborators.getCompany.getCreatedAt.getDiskUsage.getFollowers.getFollowing.getGravatarId.getHireable.getOwnedPrivateRepos.getPlan()
getPlan.getPrivateGists.getPublicGists.getPublicRepos.getTotalPrivateRepos.getType()
getType.getUpdatedAt.getUrl()
getUrl.Methods inherited from class org.pac4j.oauth.profile.OAuth20Profile
getAccessToken, getRefreshToken, removeLoginData, setAccessToken, setRefreshToken
Methods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getAttributeAsString, getAttributeAsType, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, isExpired, toString
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addRole, addRoles, asPrincipal, build, build, canEqual, containsAttribute, containsAuthenticationAttribute, equals, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getRoles, getTypedId, hashCode, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setRemembered, setRoles, writeExternal
-
Constructor Details
-
GitHubProfile
public GitHubProfile()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classorg.pac4j.core.profile.CommonProfile
-
getUsername
- Specified by:
getUsername
in interfaceorg.pac4j.core.profile.UserProfile
- Overrides:
getUsername
in classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
- Overrides:
getPictureUrl
in classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
- Overrides:
getProfileUrl
in classorg.pac4j.core.profile.CommonProfile
-
getCompany
getCompany.
- Returns:
- a
String
object
-
getFollowing
getFollowing.
- Returns:
- a
Integer
object
-
getBlog
getBlog.
- Returns:
- a
String
object
-
getPublicRepos
getPublicRepos.
- Returns:
- a
Integer
object
-
getPublicGists
getPublicGists.
- Returns:
- a
Integer
object
-
getDiskUsage
getDiskUsage.
- Returns:
- a
Integer
object
-
getCollaborators
getCollaborators.
- Returns:
- a
Integer
object
-
getPlan
getPlan.
- Returns:
- a
GitHubPlan
object
-
getOwnedPrivateRepos
getOwnedPrivateRepos.
- Returns:
- a
Integer
object
-
getTotalPrivateRepos
getTotalPrivateRepos.
- Returns:
- a
Integer
object
-
getPrivateGists
getPrivateGists.
- Returns:
- a
Integer
object
-
getFollowers
getFollowers.
- Returns:
- a
Integer
object
-
getCreatedAt
getCreatedAt.
- Returns:
- a
Date
object
-
getUpdatedAt
getUpdatedAt.
- Returns:
- a
Date
object
-
getType
getType.
- Returns:
- a
String
object
-
getGravatarId
getGravatarId.
- Returns:
- a
String
object
-
getUrl
getUrl.
- Returns:
- a
String
object
-
getHireable
getHireable.
- Returns:
- a
Boolean
object
-
getBio
getBio.
- Returns:
- a
String
object
-