code: public static String usingAuthentication(String url) {
          if (authenticationTypes.BASIC.toString().equals(getInstance().authenticationType)) {
              return url.replace("://", "://" + getLogin() + ":" + getPassword() + "@");
          }
          return url;
  
      }
docs: Process a given url using the current authentication mode.
  
  @param url
  url to access behind authentication
  @return
  the given url processed using the right authentication mode