Package org.kohsuke.github
Class GHKey
- java.lang.Object
-
- org.kohsuke.github.GHKey
-
- Direct Known Subclasses:
GHVerifiedKey
public class GHKey extends Object
SSH public key.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description GHKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
delete()
Delete the GHKeyint
getId()
Gets id.String
getKey()
Gets key.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.String
getTitle()
Gets title.String
getUrl()
Something like "https://api.github.com/user/keys/73593"boolean
isVerified()
Is verified boolean.String
toString()
To string.
-
-
-
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.
-
delete
public void delete() throws IOException
Delete the GHKey- Throws:
IOException
- the io exception
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-
-