java.lang.Object
org.jivesoftware.smackx.stanza_content_encryption.element.ContentElement
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class ContentElement extends Object implements org.jivesoftware.smack.packet.ExtensionElement
Extension element that holds the payload element, as well as a list of affix elements. In SCE, the XML representation of this element is what will be encrypted using the encryption mechanism of choice.
  • Field Details

  • Method Details

    • getPayload

      public PayloadElement getPayload()
      Return the PayloadElement which holds the sensitive payload extensions.
      Returns:
      payload element
    • getAffixElements

      public List<AffixElement> getAffixElements()
      Return a list of affix elements. Those are elements that need to be verified upon reception by the encryption mechanisms implementation.
      Returns:
      list of affix elements
      See Also:
    • getNamespace

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

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

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

      public QName getQName()
      Specified by:
      getQName in interface org.jivesoftware.smack.packet.XmlElement
    • builder

      public static ContentElement.Builder builder()
      Return a ContentElement.Builder that can be used to build the ContentElement.
      Returns:
      builder