Sets authentication credentials for accessing the remote gateway.

def setCredentials(self, username, password):
        """
        Sets authentication credentials for accessing the remote gateway.
        """
        self.addHeader('Credentials', dict(userid=username.decode('utf-8'),
            password=password.decode('utf-8')), True)