code: public function setAuthentication($repositoryName, $username, $password = null)
      {
          $this->authentications[$repositoryName] = array('username' => $username, 'password' => $password);
      }
docs: {@inheritDoc}