Class GHAppInstallationToken

java.lang.Object
org.kohsuke.github.GHAppInstallationToken

public class GHAppInstallationToken extends Object
A Github App Installation Token.
Author:
Paulo Miguel Almeida
See Also:
  • Field Details

    • expires_at

      protected String expires_at
      The expires at.
  • Constructor Details

    • GHAppInstallationToken

      public GHAppInstallationToken()
  • Method Details

    • setRoot

      @Deprecated public void setRoot(GitHub root)
      Deprecated.
      Do not use this method. It was added due to incomplete understanding of Jackson binding.
      Sets root.
      Parameters:
      root - the root
    • getPermissions

      public Map<String,String> getPermissions()
      Gets permissions.
      Returns:
      the permissions
    • setPermissions

      @Deprecated public void setPermissions(Map<String,String> permissions)
      Deprecated.
      Do not use this method. It was added due to incomplete understanding of Jackson binding.
      Sets permissions.
      Parameters:
      permissions - the permissions
    • getToken

      public String getToken()
      Gets token.
      Returns:
      the token
    • setToken

      @Deprecated public void setToken(String token)
      Deprecated.
      Do not use this method. It was added due to incomplete understanding of Jackson binding.
      Sets token.
      Parameters:
      token - the token
    • getRepositories

      public List<GHRepository> getRepositories()
      Gets repositories.
      Returns:
      the repositories
    • setRepositories

      @Deprecated public void setRepositories(List<GHRepository> repositories)
      Deprecated.
      Do not use this method. It was added due to incomplete understanding of Jackson binding.
      Sets repositories.
      Parameters:
      repositories - the repositories
    • getRepositorySelection

      public GHRepositorySelection getRepositorySelection()
      Gets repository selection.
      Returns:
      the repository selection
    • setRepositorySelection

      @Deprecated public void setRepositorySelection(GHRepositorySelection repositorySelection)
      Deprecated.
      Do not use this method. It was added due to incomplete understanding of Jackson binding.
      Sets repository selection.
      Parameters:
      repositorySelection - the repository selection
    • getExpiresAt

      @WithBridgeMethods(value=java.lang.String.class, adapterMethod="expiresAtStr") public Date getExpiresAt() throws IOException
      Gets expires at.
      Returns:
      date when this token expires
      Throws:
      IOException - on error
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance