docs: @Deprecated
      public static GitLabApi login(ApiVersion apiVersion, String url, String username, String password, boolean ignoreCertificateErrors) throws GitLabApiException {
  
          GitLabApi gitLabApi = new GitLabApi(apiVersion, url, (String)null);
          if (ignoreCertificateErrors) {
              gitLabApi.setIgnoreCertificateErrors(true);
          }
  
          try {
  
              SessionApi sessionApi = gitLabApi.getSessionApi();
              Session session = sessionApi.login(username, null, password);
              gitLabApi = new GitLabApi(apiVersion, url, session);
  
              if (ignoreCertificateErrors) {
                  gitLabApi.setIgnoreCertificateErrors(true);
              }
  
          } catch (GitLabApiException gle) {
              if (gle.getHttpStatus() != Response.Status.NOT_FOUND.getStatusCode()) {
                  throw (gle);
              } else {
                  gitLabApi = GitLabApi.oauth2Login(apiVersion, url, username, password, null, null, ignoreCertificateErrors);
              }
          }
  
          return (gitLabApi);
      }