From c05572fbc0665ce1165f71ccc1ac33db69137d24 Mon Sep 17 00:00:00 2001 From: David Kral Date: Fri, 15 Sep 2023 10:52:32 +0200 Subject: [PATCH] TargetKeys Map changed to ConcurrentHashMap 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) {