code: public void addSite(URI aRootUrl, String login, char[] pwd) {
  		String rootUri = aRootUrl.normalize().toString();
  		boolean replaced = false;
  		// check if we already have a login/password for the root uri
  		for (Site site : sites) {
  			if (site.root.equals(rootUri)) { // TODO synchronisation
  				site.login = login;
  				site.pwd = pwd;
  				replaced = true;
  				break;
  			}
  		}
  		if (!replaced) {
  			Site s = new Site();
  			s.root = rootUri;
  			s.login = login;
  			s.pwd = pwd;
  			sites.add(s);
  		}
  	}
docs: Add or replace an authentication for a root URL aka site.
  
  @param aRootUrl
  @param login
  @param pwd