Class OmemoHeaderElement
java.lang.Object
org.jivesoftware.smackx.omemo.element.OmemoHeaderElement
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
- Direct Known Subclasses:
OmemoHeaderElement_VAxolotl
public abstract class OmemoHeaderElement
extends Object
implements org.jivesoftware.smack.packet.XmlElement
Header element of the message. The header contains information about the sender and the encrypted keys for
the recipients, as well as the iv element for AES.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
ATTR_SID
- See Also:
-
ATTR_IV
- See Also:
-
-
Constructor Details
-
OmemoHeaderElement
-
-
Method Details
-
getSid
public int getSid()Return the deviceId of the sender of the message.- Returns:
- senders id
-
getKeys
-
getIv
public byte[] getIv() -
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-