public static MetaStorePasswdAuthenticationProvider getAuthenticationProvider(AuthMethods authMethod)
    throws AuthenticationException {
    return getAuthenticationProvider(new Configuration(), authMethod);
  }
This class helps select a {@link MetaStorePasswdAuthenticationProvider} for a given {@code
AuthMethod}.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreAuthenticationProviderFactory.java