Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Nov 18, 2021
1 parent d1509c3 commit 7d355b4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class NebulaClientOptions implements Serializable {

private final SSLSighType sslSighType;

private final CASignParams caSSLSignParams;
private final CASignParams caSignParams;

private final SelfSignParams selfSignParams;

Expand All @@ -45,7 +45,7 @@ private NebulaClientOptions(String metaAddress, String graphAddress, String user
String password, int timeout, int connectRetry,
boolean enableGraphSSL, boolean enableMetaSSL,
boolean enableStorageSSL,
SSLSighType sslSighType, CASignParams caSSLSignParams,
SSLSighType sslSighType, CASignParams caSignParams,
SelfSignParams selfSignParams) {
this.metaAddress = metaAddress;
this.graphAddress = graphAddress;
Expand All @@ -57,7 +57,7 @@ private NebulaClientOptions(String metaAddress, String graphAddress, String user
this.enableMetaSSL = enableMetaSSL;
this.enableStorageSSL = enableStorageSSL;
this.sslSighType = sslSighType;
this.caSSLSignParams = caSSLSignParams;
this.caSignParams = caSignParams;
this.selfSignParams = selfSignParams;
}

Expand Down Expand Up @@ -107,7 +107,7 @@ public SSLSighType getSSLSighType() {
}

public CASignParams getCaSignParam() {
return caSSLSignParams;
return caSignParams;
}

public SelfSignParams getSelfSignParam() {
Expand All @@ -130,7 +130,7 @@ public static class NebulaClientOptionsBuilder {
private boolean enableMetaSSL = false;
private boolean enableStorageSSL = false;
private SSLSighType sslSighType = null;
private CASignParams caSSLSignParams = null;
private CASignParams caSignParams = null;
private SelfSignParams selfSignParams = null;

public NebulaClientOptionsBuilder setMetaAddress(String metaAddress) {
Expand Down Expand Up @@ -186,7 +186,7 @@ public NebulaClientOptionsBuilder setSSLSignType(SSLSighType sslSighType) {

public NebulaClientOptionsBuilder setCaSignParam(String caCrtFilePath, String crtFilePath,
String keyFilePath) {
this.caSSLSignParams = new CASignParams(caCrtFilePath, crtFilePath, keyFilePath);
this.caSignParams = new CASignParams(caCrtFilePath, crtFilePath, keyFilePath);
return this;
}

Expand All @@ -213,7 +213,7 @@ public NebulaClientOptions build() {
}
switch (sslSighType) {
case CA:
if (caSSLSignParams == null) {
if (caSignParams == null) {
throw new IllegalArgumentException("ssl is enabled and sign type is "
+ "CA, caSignParam must not be null");
}
Expand Down Expand Up @@ -241,7 +241,7 @@ public NebulaClientOptions build() {
enableMetaSSL,
enableStorageSSL,
sslSighType,
caSSLSignParams,
caSignParams,
selfSignParams);
}
}
Expand Down

0 comments on commit 7d355b4

Please sign in to comment.