-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCredentials.java
More file actions
75 lines (59 loc) · 1.57 KB
/
Credentials.java
File metadata and controls
75 lines (59 loc) · 1.57 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
73
74
75
package com.skyflow.config;
import java.util.ArrayList;
public class Credentials implements Cloneable {
private String path;
private ArrayList<String> roles;
private String context;
private String credentialsString;
private String token;
private String apiKey;
public Credentials() {
this.path = null;
this.context = null;
this.credentialsString = null;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public ArrayList<String> getRoles() {
return roles;
}
public void setRoles(ArrayList<String> roles) {
this.roles = roles;
}
public String getContext() {
return context;
}
public void setContext(String context) {
this.context = context;
}
public String getCredentialsString() {
return credentialsString;
}
public void setCredentialsString(String credentialsString) {
this.credentialsString = credentialsString;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
@Override
public Object clone() throws CloneNotSupportedException {
Credentials cloned = (Credentials) super.clone();
if (this.roles != null) {
cloned.roles = new ArrayList<>(this.roles);
}
return cloned;
}
}