Class ContentElement
java.lang.Object
org.jivesoftware.smackx.stanza_content_encryption.element.ContentElement
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentElement.Builderbuilder()Return aContentElement.Builderthat can be used to build theContentElement.Return a list of affix elements.Returns the root element name.Returns the root element XML namespace.Return thePayloadElementwhich holds the sensitive payload extensions.getQName()toXML(XmlEnvironment xmlEnvironment) 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.XmlElement
getLanguage
-
Field Details
-
NAMESPACE_0
- See Also:
-
NAMESPACE
- See Also:
-
ELEMENT
- See Also:
-
QNAME
-
-
Method Details
-
getPayload
Return thePayloadElementwhich holds the sensitive payload extensions.- Returns:
- payload element
-
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
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
toXML
-
getQName
- Specified by:
getQNamein interfaceXmlElement
-
builder
Return aContentElement.Builderthat can be used to build theContentElement.- Returns:
- builder
-