-
Notifications
You must be signed in to change notification settings - Fork 776
Expand file tree
/
Copy pathGHAppInstallationToken.java
More file actions
72 lines (62 loc) · 1.52 KB
/
GHAppInstallationToken.java
File metadata and controls
72 lines (62 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package org.kohsuke.github;
import java.util.*;
// TODO: Auto-generated Javadoc
/**
* A Github App Installation Token.
*
* @author Paulo Miguel Almeida
* @see GHAppInstallation#createToken() GHAppInstallation#createToken()
*/
public class GHAppInstallationToken extends GitHubInteractiveObject {
private Map<String, String> permissions;
private List<GHRepository> repositories;
private GHRepositorySelection repositorySelection;
private String token;
/** The expires at. */
protected String expires_at;
/**
* Create default GHAppInstallationToken instance
*/
public GHAppInstallationToken() {
}
/**
* Gets expires at.
*
* @return date when this token expires
*/
public Date getExpiresAt() {
return GitHubClient.parseDate(expires_at);
}
/**
* Gets permissions.
*
* @return the permissions
*/
public Map<String, String> getPermissions() {
return Collections.unmodifiableMap(permissions);
}
/**
* Gets repositories.
*
* @return the repositories
*/
public List<GHRepository> getRepositories() {
return GitHubClient.unmodifiableListOrNull(repositories);
}
/**
* Gets repository selection.
*
* @return the repository selection
*/
public GHRepositorySelection getRepositorySelection() {
return repositorySelection;
}
/**
* Gets token.
*
* @return the token
*/
public String getToken() {
return token;
}
}