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) {