diff options
author | Thomas <> | 2023-05-08 18:48:38 +0200 |
---|---|---|
committer | Thomas <> | 2023-05-08 18:48:38 +0200 |
commit | d4cb0c73c86067264ece6599e3df8a2d0216156f (patch) | |
tree | 42803e3335b3b8a96d2eee96cbd0a6e842ca4ed2 /eaaf_core_utils/src | |
parent | ae477d6c71c213b9edad2cd05a4349b7fc9db08a (diff) | |
download | EAAF-Components-d4cb0c73c86067264ece6599e3df8a2d0216156f.tar.gz EAAF-Components-d4cb0c73c86067264ece6599e3df8a2d0216156f.tar.bz2 EAAF-Components-d4cb0c73c86067264ece6599e3df8a2d0216156f.zip |
style(core): fix codestyle issues
Diffstat (limited to 'eaaf_core_utils/src')
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 |