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 Details

  • Constructor Details

    • OmemoHeaderElement

      public OmemoHeaderElement(int sid, List<OmemoKeyElement> keys, byte[] iv)
  • Method Details

    • getSid

      public int getSid()
      Return the deviceId of the sender of the message.
      Returns:
      senders id
    • getKeys

      public List<OmemoKeyElement> getKeys()
    • getIv

      public byte[] getIv()
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element