Class GHAuthorization

java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHAuthorization

public class GHAuthorization extends GHObject
Generated OAuth token.
Author:
janinko
See Also:
  • Field Details

  • Constructor Details

    • GHAuthorization

      public GHAuthorization()
  • Method Details

    • getScopes

      public List<String> getScopes()
      Gets scopes.
      Returns:
      the scopes
    • getToken

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

      public String getTokenLastEight()
      Gets token last eight.
      Returns:
      the token last eight
    • getHashedToken

      public String getHashedToken()
      Gets hashed token.
      Returns:
      the hashed token
    • getAppUrl

      public URL getAppUrl()
      Gets app url.
      Returns:
      the app url
    • getAppName

      public String getAppName()
      Gets app name.
      Returns:
      the app name
    • getApiURL

      @Deprecated public URL getApiURL()
      Deprecated.
      Gets api url.
      Returns:
      the api url
    • getHtmlUrl

      public URL getHtmlUrl()
      Deprecated.
      This object has no HTML URL.
      Gets the html url.
      Specified by:
      getHtmlUrl in class GHObject
      Returns:
      the html url
    • getNote

      public String getNote()
      Gets note.
      Returns:
      the note
    • getNoteUrl

      public URL getNoteUrl()
      Gets note url.
      Returns:
      the note url
    • getFingerprint

      public String getFingerprint()
      Gets fingerprint.
      Returns:
      the fingerprint
    • 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