Class 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 java.lang.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 
      Modifier and Type Field Description
      static java.lang.String ATTR_IV  
      static java.lang.String ATTR_SID  
      static java.lang.String ELEMENT  
      static java.lang.String NAMESPACE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getElementName()  
      byte[] getIv()  
      java.util.ArrayList<OmemoKeyElement> getKeys()  
      java.lang.String getNamespace()  
      int getSid()
      Return the deviceId of the sender of the message.
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingXmlEnvironment)  
      • 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.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getQName
    • Constructor Detail

      • OmemoHeaderElement

        public OmemoHeaderElement​(int sid,
                                  java.util.List<OmemoKeyElement> keys,
                                  byte[] iv)
    • Method Detail

      • getSid

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

        public byte[] getIv()
      • getElementName

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

        public java.lang.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