Class GHRepositoryPublicKey

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

public class GHRepositoryPublicKey extends GHObject
A public key for the given repository.
Author:
Aditya Bansal
  • Constructor Details

    • GHRepositoryPublicKey

      public GHRepositoryPublicKey()
  • Method Details

    • getHtmlUrl

      public URL getHtmlUrl() throws IOException
      Gets the html url.
      Specified by:
      getHtmlUrl in class GHObject
      Returns:
      the html url
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • getKeyId

      public String getKeyId()
      Gets the key id.
      Returns:
      the key id
    • getKey

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