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

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:
  • Constructor Details

    • GitHubProfile

      public GitHubProfile()
  • Method Details

    • getDisplayName

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

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

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

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

      public String getCompany()

      getCompany.

      Returns:
      a String object
    • getFollowing

      public Integer getFollowing()

      getFollowing.

      Returns:
      a Integer object
    • getBlog

      public String getBlog()

      getBlog.

      Returns:
      a String object
    • getPublicRepos

      public Integer getPublicRepos()

      getPublicRepos.

      Returns:
      a Integer object
    • getPublicGists

      public Integer getPublicGists()

      getPublicGists.

      Returns:
      a Integer object
    • getDiskUsage

      public Integer getDiskUsage()

      getDiskUsage.

      Returns:
      a Integer object
    • getCollaborators

      public Integer getCollaborators()

      getCollaborators.

      Returns:
      a Integer object
    • getPlan

      public GitHubPlan getPlan()

      getPlan.

      Returns:
      a GitHubPlan object
    • getOwnedPrivateRepos

      public Integer getOwnedPrivateRepos()

      getOwnedPrivateRepos.

      Returns:
      a Integer object
    • getTotalPrivateRepos

      public Integer getTotalPrivateRepos()

      getTotalPrivateRepos.

      Returns:
      a Integer object
    • getPrivateGists

      public Integer getPrivateGists()

      getPrivateGists.

      Returns:
      a Integer object
    • getFollowers

      public Integer getFollowers()

      getFollowers.

      Returns:
      a Integer object
    • getCreatedAt

      public Date getCreatedAt()

      getCreatedAt.

      Returns:
      a Date object
    • getUpdatedAt

      public Date getUpdatedAt()

      getUpdatedAt.

      Returns:
      a Date object
    • getType

      public String getType()

      getType.

      Returns:
      a String object
    • getGravatarId

      public String getGravatarId()

      getGravatarId.

      Returns:
      a String object
    • getUrl

      public String getUrl()

      getUrl.

      Returns:
      a String object
    • getHireable

      public Boolean getHireable()

      getHireable.

      Returns:
      a Boolean object
    • getBio

      public String getBio()

      getBio.

      Returns:
      a String object