Class GHPublicKey

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHPublicKey
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHPublicKey extends GHBase
This class represents a GitHub Public Key. It provides methods for fetching data about the public key such as its key id and key.
  • Constructor Details

    • GHPublicKey

      public GHPublicKey(org.json.JSONObject jsonObject)
      Constructs a new GHPublicKey instance with the provided JSON object.
      Parameters:
      jsonObject - the JSON object containing the public key data
  • Method Details

    • getKey

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

      public String getKeyId()
      Returns the key id of the public key.
      Returns:
      the key id of the public key