Class OmemoKeyElement

java.lang.Object
org.jivesoftware.smackx.omemo.element.OmemoKeyElement
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class OmemoKeyElement extends Object implements org.jivesoftware.smack.packet.XmlElement
Small class to collect key (byte[]), its id and whether its a preKey or not.
  • Field Details

  • Constructor Details

    • OmemoKeyElement

      public OmemoKeyElement(byte[] data, int id)
    • OmemoKeyElement

      public OmemoKeyElement(byte[] data, int id, boolean preKey)
  • Method Details

    • getId

      public int getId()
    • getData

      public byte[] getData()
    • isPreKey

      public boolean isPreKey()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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