Class GHKey

  • Direct Known Subclasses:
    GHVerifiedKey

    public class GHKey
    extends Object
    SSH public key.
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • url

        protected String url
        The title.
      • key

        protected String key
        The title.
      • title

        protected String title
        The title.
      • verified

        protected boolean verified
        The verified.
      • id

        protected int id
        The id.
    • Constructor Detail

      • GHKey

        public GHKey()
    • Method Detail

      • getId

        public int getId()
        Gets id.
        Returns:
        the id
      • getKey

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

        public String getTitle()
        Gets title.
        Returns:
        the title
      • getUrl

        public String getUrl()
        Something like "https://api.github.com/user/keys/73593"
        Returns:
        the url
      • isVerified

        public boolean isVerified()
        Is verified boolean.
        Returns:
        the boolean
      • toString

        public String toString()
        To string.
        Overrides:
        toString in class Object
        Returns:
        the string
      • 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