From 540fac3fea15c9c5e418994c64dfecff69005658 Mon Sep 17 00:00:00 2001 From: Joseph Chou Date: Fri, 10 Nov 2017 16:09:25 -0500 Subject: Fix fortify Issue on Privacy Violation Remove the line where password get stored in variable Issue-ID: POLICY-442 Change-Id: I5d474c7a27dfbdcf49b5f1578be75bd2cb627afe Signed-off-by: Joseph Chou --- integrity-audit/src/main/java/org/onap/policy/common/ia/DbDAO.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'integrity-audit/src/main') 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); -- cgit 1.2.3-korg