summaryrefslogtreecommitdiffstats
path: root/prh-dmaap-client/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'prh-dmaap-client/src/main')
-rw-r--r--prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/config/DmaapCustomConfig.java21
-rw-r--r--prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/service/consumer/DMaaPReactiveWebClientFactory.java4
2 files changed, 10 insertions, 15 deletions
diff --git a/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/config/DmaapCustomConfig.java b/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/config/DmaapCustomConfig.java
index 8691111d..7084d9c1 100644
--- a/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/config/DmaapCustomConfig.java
+++ b/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/config/DmaapCustomConfig.java
@@ -50,19 +50,16 @@ public interface DmaapCustomConfig extends Serializable {
String dmaapContentType();
@Value.Parameter
- String keyFile();
+ String trustStorePath();
@Value.Parameter
- String trustStore();
+ String trustStorePasswordPath();
@Value.Parameter
- String trustStorePassword();
+ String keyStorePath();
@Value.Parameter
- String keyStore();
-
- @Value.Parameter
- String keyStorePassword();
+ String keyStorePasswordPath();
@Value.Parameter
Boolean enableDmaapCertAuth();
@@ -83,15 +80,13 @@ public interface DmaapCustomConfig extends Serializable {
B dmaapContentType(String dmaapContentType);
- B keyFile(String keyFile);
-
- B trustStore(String trustStore);
+ B trustStorePath(String trustStorePath);
- B trustStorePassword(String trustStorePass);
+ B trustStorePasswordPath(String trustStorePasswordPath);
- B keyStore(String keyStore);
+ B keyStorePath(String keyStore);
- B keyStorePassword(String keyStorePass);
+ B keyStorePasswordPath(String keyStorePass);
B enableDmaapCertAuth(Boolean enableDmaapCertAuth);
diff --git a/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/service/consumer/DMaaPReactiveWebClientFactory.java b/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/service/consumer/DMaaPReactiveWebClientFactory.java
index 68dda512..ed88efb5 100644
--- a/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/service/consumer/DMaaPReactiveWebClientFactory.java
+++ b/prh-dmaap-client/src/main/java/org/onap/dcaegen2/services/prh/service/consumer/DMaaPReactiveWebClientFactory.java
@@ -74,8 +74,8 @@ public class DMaaPReactiveWebClientFactory {
private SslContext createSslContext(DmaapConsumerConfiguration consumerConfiguration) throws SSLException {
if (consumerConfiguration.enableDmaapCertAuth()) {
return sslFactory.createSecureContext(
- consumerConfiguration.keyStore(), consumerConfiguration.keyStorePassword(),
- consumerConfiguration.trustStore(), consumerConfiguration.trustStorePassword()
+ consumerConfiguration.keyStorePath(), consumerConfiguration.keyStorePasswordPath(),
+ consumerConfiguration.trustStorePath(), consumerConfiguration.trustStorePasswordPath()
);
}
return sslFactory.createInsecureContext();