aboutsummaryrefslogtreecommitdiffstats
path: root/integrity-audit
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-11-28 01:38:54 +0000
committerGerrit Code Review <gerrit@onap.org>2017-11-28 01:38:54 +0000
commit4cd4924f682afe455db9a6416b7513fb9eafbfe0 (patch)
tree932e279eaaea193b735ad7342559f2f2535dc9eb /integrity-audit
parent94dc887dd7e31856a2a1950bd4c210e2139fbfa0 (diff)
parent540fac3fea15c9c5e418994c64dfecff69005658 (diff)
Merge "Fix fortify Issue on Privacy Violation"
Diffstat (limited to 'integrity-audit')
-rw-r--r--integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java b/integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java
index e1412094..db633400 100644
--- a/integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java
+++ b/integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java
@@ -56,7 +56,6 @@ public class DbDAO {
private String dbDriver;
private String dbUrl;
private String dbUser;
- private String dbPwd;
private String siteName;
private String nodeType;
private Properties properties=null;
@@ -106,7 +105,6 @@ public class DbDAO {
this.dbDriver = properties.getProperty(IntegrityAuditProperties.DB_DRIVER).trim();
this.dbUrl = properties.getProperty(IntegrityAuditProperties.DB_URL).trim();
this.dbUser = properties.getProperty(IntegrityAuditProperties.DB_USER).trim();
- this.dbPwd = properties.getProperty(IntegrityAuditProperties.DB_PWD).trim();
this.siteName = properties.getProperty(IntegrityAuditProperties.SITE_NAME).trim();
this.nodeType = properties.getProperty(IntegrityAuditProperties.NODE_TYPE).trim();
this.properties = properties;
@@ -423,7 +421,7 @@ public class DbDAO {
iae.setNodeType(this.nodeType);
iae.setLastUpdated(new Date());
iae.setJdbcDriver(this.dbDriver);
- iae.setJdbcPassword(this.dbPwd);
+ iae.setJdbcPassword(properties.getProperty(IntegrityAuditProperties.DB_PWD).trim());
iae.setJdbcUrl(dbUrl);
iae.setJdbcUser(dbUser);