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
Constructors -
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, setRefreshTokenMethods inherited from class org.pac4j.core.profile.CommonProfile
getAttributeAsDate, getAttributeAsString, getAttributeAsType, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, isExpired, toStringMethods 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:
getDisplayNamein classorg.pac4j.core.profile.CommonProfile
-
getUsername
- Specified by:
getUsernamein interfaceorg.pac4j.core.profile.UserProfile- Overrides:
getUsernamein classorg.pac4j.core.profile.CommonProfile
-
getPictureUrl
- Overrides:
getPictureUrlin classorg.pac4j.core.profile.CommonProfile
-
getProfileUrl
- Overrides:
getProfileUrlin classorg.pac4j.core.profile.CommonProfile
-
getCompany
getCompany.
- Returns:
- a
Stringobject
-
getFollowing
getFollowing.
- Returns:
- a
Integerobject
-
getBlog
getBlog.
- Returns:
- a
Stringobject
-
getPublicRepos
getPublicRepos.
- Returns:
- a
Integerobject
-
getPublicGists
getPublicGists.
- Returns:
- a
Integerobject
-
getDiskUsage
getDiskUsage.
- Returns:
- a
Integerobject
-
getCollaborators
getCollaborators.
- Returns:
- a
Integerobject
-
getPlan
getPlan.
- Returns:
- a
GitHubPlanobject
-
getOwnedPrivateRepos
getOwnedPrivateRepos.
- Returns:
- a
Integerobject
-
getTotalPrivateRepos
getTotalPrivateRepos.
- Returns:
- a
Integerobject
-
getPrivateGists
getPrivateGists.
- Returns:
- a
Integerobject
-
getFollowers
getFollowers.
- Returns:
- a
Integerobject
-
getCreatedAt
getCreatedAt.
- Returns:
- a
Dateobject
-
getUpdatedAt
getUpdatedAt.
- Returns:
- a
Dateobject
-
getType
getType.
- Returns:
- a
Stringobject
-
getGravatarId
getGravatarId.
- Returns:
- a
Stringobject
-
getUrl
getUrl.
- Returns:
- a
Stringobject
-
getHireable
getHireable.
- Returns:
- a
Booleanobject
-
getBio
getBio.
- Returns:
- a
Stringobject
-