private void loadJWKSets() throws IOException, ParseException {
    String jwksURL = MetastoreConf.getVar(conf, ConfVars.THRIFT_METASTORE_AUTHENTICATION_JWT_JWKS_URL);
    if (jwksURL == null || jwksURL.isEmpty()) {
      throw new IOException("Invalid value of property: " +
          ConfVars.THRIFT_METASTORE_AUTHENTICATION_JWT_JWKS_URL.getHiveName());
    }
    String[] jwksURLs = jwksURL.split(",");
    for (String urlString : jwksURLs) {
      URL url = new URL(urlString);
      jwkSets.add(JWKSet.load(url));
      LOG.info("Loaded JWKS from " + urlString);
    }
  }
Fetches the JWKS and stores into memory. The JWKS are expected to be in the standard form as defined here -
https://datatracker.ietf.org/doc/html/rfc7517#appendix-A.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/auth/jwt/URLBasedJWKSProvider.java