docs: public T authentication(String username, String password, boolean allowAnyHost) {
          if (StringUtils.isNotBlank(username)) {
              if (defaultHost == null || StringUtils.isBlank(defaultHost.getHostName())) {
                  throw new IllegalStateException("Cannot configure authentication when host is not set.");
              }
              AuthScope authscope = allowAnyHost ?
                      new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM) :
                      new AuthScope(defaultHost.getHostName(), AuthScope.ANY_PORT, AuthScope.ANY_REALM);
              credsProvider.setCredentials(authscope, new UsernamePasswordCredentials(username, password));
          }
          return self();
      }