Package org.kohsuke.github
Class GHAppInstallationToken
- java.lang.Object
-
- org.kohsuke.github.GHAppInstallationToken
-
public class GHAppInstallationToken extends Object
A Github App Installation Token.- Author:
- Paulo Miguel Almeida
- See Also:
GHAppInstallation#createToken(Map)
-
-
Field Summary
Fields Modifier and Type Field Description protected String
expires_at
The expires at.
-
Constructor Summary
Constructors Constructor Description GHAppInstallationToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Date
getExpiresAt()
Gets expires at.Map<String,String>
getPermissions()
Gets permissions.List<GHRepository>
getRepositories()
Gets repositories.GHRepositorySelection
getRepositorySelection()
Gets repository selection.GitHub
getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.String
getToken()
Gets token.void
setPermissions(Map<String,String> permissions)
Deprecated.Do not use this method.void
setRepositories(List<GHRepository> repositories)
Deprecated.Do not use this method.void
setRepositorySelection(GHRepositorySelection repositorySelection)
Deprecated.Do not use this method.void
setRoot(GitHub root)
Deprecated.Do not use this method.void
setToken(String token)
Deprecated.Do not use this method.
-
-
-
Field Detail
-
expires_at
protected String expires_at
The expires at.
-
-
Method Detail
-
setRoot
@Deprecated public void setRoot(GitHub root)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets root.- Parameters:
root
- the root
-
getPermissions
public Map<String,String> getPermissions()
Gets permissions.- Returns:
- the permissions
-
setPermissions
@Deprecated public void setPermissions(Map<String,String> permissions)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets permissions.- Parameters:
permissions
- the permissions
-
getToken
public String getToken()
Gets token.- Returns:
- the token
-
setToken
@Deprecated public void setToken(String token)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets token.- Parameters:
token
- the token
-
getRepositories
public List<GHRepository> getRepositories()
Gets repositories.- Returns:
- the repositories
-
setRepositories
@Deprecated public void setRepositories(List<GHRepository> repositories)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets repositories.- Parameters:
repositories
- the repositories
-
getRepositorySelection
public GHRepositorySelection getRepositorySelection()
Gets repository selection.- Returns:
- the repository selection
-
setRepositorySelection
@Deprecated public void setRepositorySelection(GHRepositorySelection repositorySelection)
Deprecated.Do not use this method. It was added due to incomplete understanding of Jackson binding.Sets repository selection.- Parameters:
repositorySelection
- the repository selection
-
getExpiresAt
@WithBridgeMethods(value=java.lang.String.class, adapterMethod="expiresAtStr") public Date getExpiresAt() throws IOException
Gets expires at.- Returns:
- date when this token expires
- Throws:
IOException
- on error
-
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
-
-