aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorVijay VK <vv770d@att.com>2018-03-01 15:16:47 +0000
committerVENKATESH KUMAR <vv770d@att.com>2018-03-01 10:25:40 -0500
commitae3897e5081c78744308c63b4423777188241219 (patch)
treecab01b02469970df433290fcf53d6f43fd3b1fc0 /src/main/java
parent4db8e80971cba267628c6b642aed902eabbde5d8 (diff)
address clm-security issues
Change-Id: I7bfd3583b16c5f2b914a9b5f3cca2d3a07614895 Signed-off-by: VENKATESH KUMAR <vv770d@att.com> Issue-ID: DCAEGEN2-360
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/dcae/commonFunction/EventPublisherHash.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dcae/commonFunction/EventPublisherHash.java b/src/main/java/org/onap/dcae/commonFunction/EventPublisherHash.java
index f8bdcaa2..49221418 100644
--- a/src/main/java/org/onap/dcae/commonFunction/EventPublisherHash.java
+++ b/src/main/java/org/onap/dcae/commonFunction/EventPublisherHash.java
@@ -84,7 +84,7 @@ public class EventPublisherHash {
}
- if (authuser != null) {
+ if ((authuser != null) && (authpwd != null)) {
log.debug(String.format("URL:%sTOPIC:%sAuthUser:%sAuthpwd:%s", ueburl, topic, authuser, authpwd));
pub = new CambriaClientBuilders.PublisherBuilder().usingHosts(ueburl).onTopic(topic).usingHttps()
.authenticatedByHttp(authuser, authpwd).logSendFailuresAfter(5)