Skip to content

Commit

Permalink
#131 - Make thread safe.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 14, 2020
1 parent c968122 commit 5bd3321
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.solr.common.SolrException;
import org.jose4j.jwk.HttpsJwks;
Expand Down Expand Up @@ -56,9 +57,9 @@
public class JWTVerificationkeyResolver implements VerificationKeyResolver {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private VerificationJwkSelector verificationJwkSelector = new VerificationJwkSelector();
private final VerificationJwkSelector verificationJwkSelector = new VerificationJwkSelector();

private Map<String, JWTIssuerConfig> issuerConfigs = new HashMap<>();
private Map<String, JWTIssuerConfig> issuerConfigs = new ConcurrentHashMap<>();
private final boolean requireIssuer;

/**
Expand Down

0 comments on commit 5bd3321

Please sign in to comment.