-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathOAuthStore.java
More file actions
47 lines (36 loc) · 1.14 KB
/
OAuthStore.java
File metadata and controls
47 lines (36 loc) · 1.14 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
package br.com.userede.erede;
public class OAuthStore {
private OAuthEnvironment environment;
private String clientId; // OLD PV
private String clientSecret; // OLD CHAVE INTEGRACAO
public OAuthStore(String clientId, String clientSecret, OAuthEnvironment environment) {
this.clientId = clientId;
this.clientSecret = clientSecret;
this.environment = environment;
}
/**Constructs production OAuthStore*/
public OAuthStore(String clientId, String clientSecret) {
this(clientId, clientSecret, OAuthEnvironment.production());
}
public OAuthEnvironment getEnvironment() {
return environment;
}
public OAuthStore setEnvironment(OAuthEnvironment environment) {
this.environment = environment;
return this;
}
/**Old PV**/
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
/**Old CHAVE INTEGRACAO**/
public String getClientSecret() {
return clientSecret;
}
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
}