def lock(self, key, client):
        """Set the key that will be used to ensure messages come from one party

        Args:
            key (string): The key used to validate future messages
            client (string): A string that will be returned to indicate who
                locked this device.
        """

        self.key = key
        self.client = client