public class OmemoVAxolotlElement extends OmemoElement
OmemoElement.OmemoHeader
ENCRYPTED, header, HEADER, IV, KEY, payload, PAYLOAD, PREKEY, RID, SID, TYPE_OMEMO_MESSAGE, TYPE_OMEMO_PREKEY_MESSAGE
Constructor and Description |
---|
OmemoVAxolotlElement(OmemoElement.OmemoHeader header,
byte[] payload)
Create a new OmemoMessageElement from a header and a payload.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
toString() |
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
getHeader, getPayload, isKeyTransportElement, isMessageElement
public OmemoVAxolotlElement(OmemoElement.OmemoHeader header, byte[] payload)
header
- header of the messagepayload
- payloadpublic String getElementName()
NamedElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element
enclosingNamespace
- the enclosing namespace or null
.public String getNamespace()
ExtensionElement