code: def setCredentials(self, user, password):
          
          self._checkUserAndPass(user, password)
          self.user = user
          self.password = password
docs: !
          Set authentication credentials.
  
          @param user Username.
          @param password Password.