summaryrefslogtreecommitdiff
path: root/eaaf_core_utils
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core_utils')
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreBuilder.java4
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java4
2 files changed, 5 insertions, 3 deletions
diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreBuilder.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreBuilder.java
index a1e3a824..9ec2cfb4 100644
--- a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreBuilder.java
+++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreBuilder.java
@@ -5,6 +5,7 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URI;
+import java.nio.charset.StandardCharsets;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.KeyStoreException;
@@ -129,7 +130,8 @@ public class InlineKeyStoreBuilder {
private PrivateKey readPrivateKey(String filePath) throws IOException, EaafConfigurationException {
try (
- Reader fileReader = new InputStreamReader(readResourceFromFile(filePath));
+ Reader fileReader = new InputStreamReader(
+ readResourceFromFile(filePath), StandardCharsets.UTF_8);
PEMParser pemParser = new PEMParser(fileReader)) {
final Object object = pemParser.readObject();
diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java
index 0ddc2680..52afd2dd 100644
--- a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java
+++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java
@@ -127,8 +127,8 @@ public class InlineKeyStoreParser extends URLStreamHandler {
.map(keyValuePair -> new AbstractMap.SimpleEntry<String, String>(keyValuePair[0],
keyValuePair[1])) // map arrays to Entry objects
.collect(Collectors
- .groupingBy(AbstractMap.SimpleEntry::getKey)) // group entries with identical keys to a map of
- // lists
+ // group entries with identical keys to a map of lists
+ .groupingBy(AbstractMap.SimpleEntry::getKey))
.entrySet().stream() // stream the map again
.map(entry -> new AbstractMap.SimpleEntry<>(entry.getKey(),
entry.getValue().stream().map(AbstractMap.SimpleEntry::getValue).collect(Collectors