static JwtSecretProvider initAndGet(Configuration conf) {
    final String providerClass =
        HiveConf.getVar(conf, HiveConf.ConfVars.LLAP_EXTERNAL_CLIENT_CLOUD_JWT_SHARED_SECRET_PROVIDER);
    JwtSecretProvider provider;
    try {
      provider = (JwtSecretProvider) Class.forName(providerClass).newInstance();
      provider.init(conf);
    } catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
      throw new RuntimeException("Unable to instantiate provider: " + providerClass, e);
    }
    return provider;
  }
Hive internally uses this method to obtain instance of {@link JwtSecretProvider}

@param conf configuration
@return implementation of {@link HiveConf.ConfVars#LLAP_EXTERNAL_CLIENT_CLOUD_JWT_SHARED_SECRET_PROVIDER}
llap-common/src/java/org/apache/hadoop/hive/llap/security/JwtSecretProvider.java