Skip to content

Commit

Permalink
Remove the token config as it duplicates the apiKey and is not used (#13
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BogdanIrimie authored Aug 30, 2023
1 parent 8042222 commit bebaa6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.aserto</groupId>
<artifactId>aserto-java</artifactId>
<version>0.20.6</version>
<version>0.20.7</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Java SDK to interact with aserto services</description>
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/aserto/ChannelBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ public ChannelBuilder withAPIKeyAuth(String apiKey) {
return this;
}

public ChannelBuilder withTokenAuth(String token) {
cfg.setToken(token);

return this;
}

public ChannelBuilder withInsecure(Boolean insecure) {
cfg.setInsecure(insecure);

Expand Down
12 changes: 1 addition & 11 deletions src/main/java/com/aserto/model/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ public class Config {
private int port;
private String apiKey;
private String tenantId;
private String token = "";
private Boolean insecure = false;
private String caCertPath = "";

public Config() {
}

public Config(String host, int port, String apiKey, String tenantID, String token, Boolean insecure, String caCertPath) {
public Config(String host, int port, String apiKey, String tenantID, Boolean insecure, String caCertPath) {
this.host = host;
this.port = port;
this.apiKey = apiKey;
this.tenantId = tenantID;
this.token = token;
this.insecure = insecure;
this.caCertPath = caCertPath;
}
Expand Down Expand Up @@ -54,14 +52,6 @@ public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}

public String getToken() {
return token;
}

public void setToken(String token) {
this.token = token;
}

public Boolean getInsecure() {
return insecure;
}
Expand Down

0 comments on commit bebaa6a

Please sign in to comment.