diff --git a/stanza.py b/stanza.py index 245df4c..4eaeb11 100644 --- a/stanza.py +++ b/stanza.py @@ -49,7 +49,16 @@ class Key(ElementBase): namespace = OMEMO_BASE_NS name = 'key' plugin_attrib = name - interfaces = {'rid', 'prekey'} + interfaces = {'rid', 'prekey', 'value'} + + def get_value(self): + return self.xml.text + + def set_value(self, value): + self.xml.text = str(value) + + def del_value(self): + self.xml.text = '' class IV(ElementBase):