Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implement Encryption on Passwords
[policy/engine.git]
/
LogParser
/
src
/
main
/
java
/
org
/
onap
/
xacml
/
parser
/
ParseLog.java
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
1dbe125
..
827516e
100644
(file)
--- 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
* ================================================================================
* ============LICENSE_START=======================================================
* LogParser
* ================================================================================
- * Copyright (C) 201
7
AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 201
8
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.
* ================================================================================
* 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.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;
/**
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");
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) {
return config;
} catch (IOException e) {