Class 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
    • Field Summary

      • Fields inherited from class org.pac4j.core.profile.BasicUserProfile

        logger
    • 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.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GitHubProfile

        public GitHubProfile()
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Overrides:
        getDisplayName in class org.pac4j.core.profile.CommonProfile
      • getUsername

        public java.lang.String getUsername()
        Specified by:
        getUsername in interface org.pac4j.core.profile.UserProfile
        Overrides:
        getUsername in class org.pac4j.core.profile.CommonProfile
      • getPictureUrl

        public java.net.URI getPictureUrl()
        Overrides:
        getPictureUrl in class org.pac4j.core.profile.CommonProfile
      • getProfileUrl

        public java.net.URI getProfileUrl()
        Overrides:
        getProfileUrl in class org.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()
      • 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()