Skip to content

Commit 939c2cb

Browse files
committed
Adding a hashset for performance
1 parent c5d5968 commit 939c2cb

File tree

1 file changed

+1
-1
lines changed
  • enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt

1 file changed

+1
-1
lines changed

enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt/JWTAuthenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class JWTAuthenticator implements Authenticator {
7373
private final JWTValidator jwtValidator = new JWTValidator();
7474
private final boolean isGatewayTokenCacheEnabled;
7575
private AbstractAPIMgtGatewayJWTGenerator jwtGenerator;
76-
private static final HashSet<String> prodTokenNonProdAllowedOrgs = new HashSet<>();
76+
private static final Set<String> prodTokenNonProdAllowedOrgs = new HashSet<>();
7777

7878
static {
7979
if (System.getenv("PROD_TOKEN_NONPROD_ALLOWED_ORGS") != null) {

0 commit comments

Comments
 (0)