From 24fe0121066d44a0d3db1c3d8a4b9ffd2caa6d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Kr=C3=A1l?= Date: Wed, 27 Sep 2023 12:47:05 +0200 Subject: [PATCH] TargetKeys Map changed to ConcurrentHashMap (#7603) Signed-off-by: David Kral --- .../helidon/security/providers/httpsign/HttpSignProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/providers/http-sign/src/main/java/io/helidon/security/providers/httpsign/HttpSignProvider.java b/security/providers/http-sign/src/main/java/io/helidon/security/providers/httpsign/HttpSignProvider.java index 27d1b7eab14..ad1515a886d 100644 --- a/security/providers/http-sign/src/main/java/io/helidon/security/providers/httpsign/HttpSignProvider.java +++ b/security/providers/http-sign/src/main/java/io/helidon/security/providers/httpsign/HttpSignProvider.java @@ -23,6 +23,7 @@ import java.util.Optional; import java.util.Set; import java.util.TreeMap; +import java.util.concurrent.ConcurrentHashMap; import io.helidon.config.Config; import io.helidon.config.metadata.Configured; @@ -76,7 +77,7 @@ public final class HttpSignProvider implements AuthenticationProvider, OutboundS private final Map inboundKeys; private final OutboundConfig outboundConfig; // cache of target name to a signature configuration for outbound calls - private final Map targetKeys = new HashMap<>(); + private final Map targetKeys = new ConcurrentHashMap<>(); private final boolean backwardCompatibleEol; private HttpSignProvider(Builder builder) {