code: public TProcessorFactory getAuthProcFactory(ThriftCLIService service) throws LoginException {
      if (authTypeStr.equalsIgnoreCase(AuthTypes.KERBEROS.getAuthName())) {
        return KerberosSaslHelper.getKerberosProcessorFactory(saslServer, service);
      } else {
        return PlainSaslHelper.getPlainProcessorFactory(service);
      }
    }
docs: Returns the thrift processor factory for HiveServer2 running in binary mode
  @param service
  @return
  @throws LoginException