Class OmemoElement
java.lang.Object
org.jivesoftware.smackx.omemo.element.OmemoElement
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
OmemoElement_VAxolotl
Class that represents an OmemoElement.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOmemoElement
(OmemoHeaderElement header, byte[] payload) Create a new OmemoMessageElement from a header and a payload. -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.byte[]
Return the payload of the message.boolean
boolean
toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getNamespace, getQName
-
Field Details
-
TYPE_OMEMO_PREKEY_MESSAGE
- See Also:
-
TYPE_OMEMO_MESSAGE
- See Also:
-
NAME_ENCRYPTED
- See Also:
-
ATTR_PAYLOAD
- See Also:
-
-
Constructor Details
-
OmemoElement
Create a new OmemoMessageElement from a header and a payload.- Parameters:
header
- header of the messagepayload
- payload
-
-
Method Details
-
getHeader
-
getPayload
Return the payload of the message.- Returns:
- encrypted payload of the message.
-
isKeyTransportElement
-
isMessageElement
-
toXML
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-