Class OmemoKeyElement
java.lang.Object
org.jivesoftware.smackx.omemo.element.OmemoKeyElement
- All Implemented Interfaces:
Element
,NamedElement
,XmlElement
,XmlLangElement
Small class to collect key (byte[]), its id and whether its a preKey or not.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOmemoKeyElement
(byte[] data, int id) OmemoKeyElement
(byte[] data, int id, boolean preKey) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
ATTR_RID
- See Also:
-
ATTR_PREKEY
- See Also:
-
-
Constructor Details
-
OmemoKeyElement
-
OmemoKeyElement
-
-
Method Details
-
getId
-
getData
-
isPreKey
-
toString
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-