diff options
author | William Reehil <william.reehil@att.com> | 2022-11-11 13:37:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-11-11 13:37:28 +0000 |
commit | 131345b4ef18b8dc2c346c6af59f90f0d3fde431 (patch) | |
tree | 0fb1d89ae31c0a153067bb383a5851e4424f2aca /aai-rest | |
parent | 3824f66ae66823d5de0be9b49f5c85113d9e20e7 (diff) | |
parent | 5eb0e49534114edf8a76fef5b2a8e50c7bdaa812 (diff) |
Merge "Replace deprecated methods in aai-common"
Diffstat (limited to 'aai-rest')
-rw-r--r-- | aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java b/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java index 9ed35def..a6028f9c 100644 --- a/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java +++ b/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java @@ -24,6 +24,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.Charset; import java.util.LinkedHashMap; import java.util.Map; import java.util.Properties; @@ -65,7 +66,7 @@ public class PropertyPasswordConfiguration implements ApplicationContextInitiali if (passwordStream != null) { String keystorePassword = null; - keystorePassword = IOUtils.toString(passwordStream); + keystorePassword = IOUtils.toString(passwordStream, Charset.defaultCharset()); if (keystorePassword != null) { keystorePassword = keystorePassword.trim(); } |