Class OmemoKeyElement
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.element.OmemoKeyElement
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class OmemoKeyElement extends Object implements FullyQualifiedElement
Small class to collect key (byte[]), its id and whether its a preKey or not.
-
-
Constructor Summary
Constructors Constructor Description OmemoKeyElement(byte[] data, int id)
OmemoKeyElement(byte[] data, int id, boolean preKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
String
getElementName()
Returns the root element name.int
getId()
String
getNamespace()
Returns the root element XML namespace.boolean
isPreKey()
String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingXmlEnvironment)
-
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
ATTR_RID
public static final String ATTR_RID
- See Also:
- Constant Field Values
-
ATTR_PREKEY
public static final String ATTR_PREKEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OmemoKeyElement
public OmemoKeyElement(byte[] data, int id)
-
OmemoKeyElement
public OmemoKeyElement(byte[] data, int id, boolean preKey)
-
-
Method Detail
-
getId
public int getId()
-
getData
public byte[] getData()
-
isPreKey
public boolean isPreKey()
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment)
-
-