Fix formatting
This commit is contained in:
parent
c4273e5c94
commit
2030489183
3 changed files with 5 additions and 5 deletions
|
@ -109,7 +109,7 @@ public class ClustersProperties {
|
|||
public static class TruststoreConfig {
|
||||
String truststoreLocation;
|
||||
String truststorePassword;
|
||||
boolean verifySSL = true;
|
||||
boolean verifySsl = true;
|
||||
}
|
||||
|
||||
@Data
|
||||
|
|
|
@ -18,7 +18,7 @@ public final class KafkaClientSslPropertiesUtil {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!truststoreConfig.isVerifySSL()) {
|
||||
if (!truststoreConfig.isVerifySsl()) {
|
||||
sink.put(SSL_ENGINE_FACTORY_CLASS_CONFIG, InsecureSslEngineFactory.class);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -46,8 +46,8 @@ public class WebClientConfigurator {
|
|||
|
||||
public WebClientConfigurator configureSsl(@Nullable ClustersProperties.TruststoreConfig truststoreConfig,
|
||||
@Nullable ClustersProperties.KeystoreConfig keystoreConfig) {
|
||||
if (truststoreConfig != null && !truststoreConfig.isVerifySSL()) {
|
||||
return configureNoSSL();
|
||||
if (truststoreConfig != null && !truststoreConfig.isVerifySsl()) {
|
||||
return configureNoSsl();
|
||||
}
|
||||
|
||||
return configureSsl(
|
||||
|
@ -103,7 +103,7 @@ public class WebClientConfigurator {
|
|||
}
|
||||
|
||||
@SneakyThrows
|
||||
public WebClientConfigurator configureNoSSL() {
|
||||
public WebClientConfigurator configureNoSsl() {
|
||||
var contextBuilder = SslContextBuilder.forClient();
|
||||
contextBuilder.trustManager(InsecureTrustManagerFactory.INSTANCE);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue