diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-02-06 20:34:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-02-06 20:34:26 +0000 |
commit | 07450cf3a2fa5ac2049d7b287567eb2641dfb5f7 (patch) | |
tree | 459fdb335b54f8749c8c408e33fe66b12effcdd2 /LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java | |
parent | 695d88bd7a987a06173fc4fa13f4135916a79a86 (diff) | |
parent | 9b323f102056c57c5dbc10917c9c72ddb929c418 (diff) |
Merge "Implement Encryption on Passwords"
Diffstat (limited to 'LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java')
-rw-r--r-- | LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java b/LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java index 1dbe12523..827516e75 100644 --- a/LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java +++ b/LogParser/src/main/java/org/onap/xacml/parser/ParseLog.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * LogParser * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ import org.onap.policy.common.im.AdministrativeStateException; import org.onap.policy.common.im.IntegrityMonitor; import org.onap.policy.common.im.StandbyStatusException; import org.onap.policy.common.logging.flexlogger.FlexLogger; +import org.onap.policy.utils.CryptoUtils; import org.onap.xacml.parser.LogEntryObject.LOGTYPE; /** @@ -808,7 +809,8 @@ public class ParseLog { jdbcUrl = config.getProperty("JDBC_URL").replace("'", ""); jdbcUser = config.getProperty("JDBC_USER"); jdbcDriver = config.getProperty("JDBC_DRIVER"); - jdbcPassword = config.getProperty("JDBC_PASSWORD"); + jdbcPassword = CryptoUtils.decryptTxtNoExStr(config.getProperty("JDBC_PASSWORD", "")); + config.setProperty("javax.persistence.jdbc.password", CryptoUtils.decryptTxtNoExStr(config.getProperty("javax.persistence.jdbc.password", ""))); return config; } catch (IOException e) { |