diff options
author | Ubuntu <dgl@research.att.com> | 2020-03-09 13:39:09 +0000 |
---|---|---|
committer | Ubuntu <dgl@research.att.com> | 2020-03-09 13:39:30 +0000 |
commit | 395c7f1a7cef1e27deba132b2138e90f5ddd43c1 (patch) | |
tree | b24058dd3de07cacb0b4c57cb68a0857e60097d2 /src/main/java/org/onap | |
parent | fdaafe26bd0dba6fa825e22f16b9819ca2771bec (diff) |
Fix initialization bug
Issue-ID: DMAAP-1401
Signed-off-by: Ubuntu <dgl@research.att.com>
Change-Id: I524bea72580b8d4e4ddacfb7bd91f3cead03f489
Signed-off-by: Ubuntu <dgl@research.att.com>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/server/CertficateManagerFactory.java | 2 | ||||
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/server/CertificateManager.java | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/server/CertficateManagerFactory.java b/src/main/java/org/onap/dmaap/dbcapi/server/CertficateManagerFactory.java index 55aa0c1..0bffd84 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/server/CertficateManagerFactory.java +++ b/src/main/java/org/onap/dmaap/dbcapi/server/CertficateManagerFactory.java @@ -39,7 +39,7 @@ public class CertficateManagerFactory extends BaseLoggingClass { public CertificateManager initCertificateManager() { boolean useCadi = "cadi".equalsIgnoreCase(dmaapConfig.getProperty("CertificateManagement", "legacy")); - logger.info("CertificateManagerFactory: useCadi=", useCadi); + logger.info("CertificateManagerFactory: useCadi=" + useCadi); if ( useCadi ) { return new CadiCertificateManager( dmaapConfig ); diff --git a/src/main/java/org/onap/dmaap/dbcapi/server/CertificateManager.java b/src/main/java/org/onap/dmaap/dbcapi/server/CertificateManager.java index e0f554d..2772b92 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/server/CertificateManager.java +++ b/src/main/java/org/onap/dmaap/dbcapi/server/CertificateManager.java @@ -53,6 +53,12 @@ public abstract class CertificateManager extends BaseLoggingClass{ private cmAttribute trustStore; protected boolean ready; + CertificateManager() { + keyStore = new cmAttribute(); + trustStore = new cmAttribute(); + ready = false; + } + public boolean isReady() { return ready; } |