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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentElement.Builder
builder()
Return aContentElement.Builder
that can be used to build theContentElement
.Return a list of affix elements.Returns the root element name.Returns the root element XML namespace.Return thePayloadElement
which 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, wait
Methods 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 thePayloadElement
which 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:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
-
getQName
- Specified by:
getQName
in interfaceXmlElement
-
builder
Return aContentElement.Builder
that can be used to build theContentElement
.- Returns:
- builder
-