Package org.kohsuke.github
Class GHDeployKey
- java.lang.Object
-
- org.kohsuke.github.GHDeployKey
-
public class GHDeployKey extends Object
The type GHDeployKey.
-
-
Constructor Summary
Constructors Constructor Description GHDeployKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddelete()Delete.StringgetAdded_by()Gets added_byDategetCreatedAt()Gets created_at.longgetId()Gets id.StringgetKey()Gets key.DategetLastUsedAt()Gets last_used.StringgetTitle()Gets title.StringgetUrl()Gets url.booleanisRead_only()Is read_onlybooleanisVerified()Is verified boolean.StringtoString()To string.GHDeployKeywrap(GHRepository repo)Deprecated.
-
-
-
Method Detail
-
getId
public long 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()
Gets url.- Returns:
- the url
-
isVerified
public boolean isVerified()
Is verified boolean.- Returns:
- the boolean
-
getCreatedAt
public Date getCreatedAt()
Gets created_at.- Returns:
- the created_at
-
getLastUsedAt
public Date getLastUsedAt()
Gets last_used.- Returns:
- the last_used
-
getAdded_by
public String getAdded_by()
Gets added_by- Returns:
- the added_by
-
isRead_only
public boolean isRead_only()
Is read_only- Returns:
- true if the key can only read. False if the key has write permission as well.
-
wrap
@Deprecated public GHDeployKey wrap(GHRepository repo)
Deprecated.Wrap gh deploy key.- Parameters:
repo- the repo- Returns:
- the gh deploy key
-
toString
public String toString()
To string.
-
delete
public void delete() throws IOExceptionDelete.- Throws:
IOException- the io exception
-
-