Skip to content

Commit bebaa6a

Browse files
authored
Remove the token config as it duplicates the apiKey and is not used (#13)
1 parent 8042222 commit bebaa6a

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.aserto</groupId>
88
<artifactId>aserto-java</artifactId>
9-
<version>0.20.6</version>
9+
<version>0.20.7</version>
1010

1111
<name>${project.groupId}:${project.artifactId}</name>
1212
<description>Java SDK to interact with aserto services</description>

src/main/java/com/aserto/ChannelBuilder.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ public ChannelBuilder withAPIKeyAuth(String apiKey) {
4848
return this;
4949
}
5050

51-
public ChannelBuilder withTokenAuth(String token) {
52-
cfg.setToken(token);
53-
54-
return this;
55-
}
56-
5751
public ChannelBuilder withInsecure(Boolean insecure) {
5852
cfg.setInsecure(insecure);
5953

src/main/java/com/aserto/model/Config.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@ public class Config {
55
private int port;
66
private String apiKey;
77
private String tenantId;
8-
private String token = "";
98
private Boolean insecure = false;
109
private String caCertPath = "";
1110

1211
public Config() {
1312
}
1413

15-
public Config(String host, int port, String apiKey, String tenantID, String token, Boolean insecure, String caCertPath) {
14+
public Config(String host, int port, String apiKey, String tenantID, Boolean insecure, String caCertPath) {
1615
this.host = host;
1716
this.port = port;
1817
this.apiKey = apiKey;
1918
this.tenantId = tenantID;
20-
this.token = token;
2119
this.insecure = insecure;
2220
this.caCertPath = caCertPath;
2321
}
@@ -54,14 +52,6 @@ public void setTenantId(String tenantId) {
5452
this.tenantId = tenantId;
5553
}
5654

57-
public String getToken() {
58-
return token;
59-
}
60-
61-
public void setToken(String token) {
62-
this.token = token;
63-
}
64-
6555
public Boolean getInsecure() {
6656
return insecure;
6757
}

0 commit comments

Comments
 (0)