def setCredentials(self, user, password):
        """!
        Set authentication credentials.

        @param user Username.
        @param password Password.
        """
        self._checkUserAndPass(user, password)
        self.user = user
        self.password = password