public static PasswdAuthenticationProvider getAuthenticationProvider(AuthMethods authMethod)
    throws AuthenticationException {
    return getAuthenticationProvider(authMethod, null);
  }
This class helps select a {@link PasswdAuthenticationProvider} for a given {@code AuthMethod}.
service/src/java/org/apache/hive/service/auth/AuthenticationProviderFactory.java