public class OmemoKeyElement extends Object implements NamedElement
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_PREKEY |
static String |
ATTR_RID |
static String |
NAME_KEY |
Constructor and Description |
---|
OmemoKeyElement(byte[] data,
int id) |
OmemoKeyElement(byte[] data,
int id,
boolean preKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData() |
String |
getElementName()
Returns the root element name.
|
int |
getId() |
boolean |
isPreKey() |
String |
toString() |
CharSequence |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String NAME_KEY
public static final String ATTR_RID
public static final String ATTR_PREKEY
public OmemoKeyElement(byte[] data, int id)
public OmemoKeyElement(byte[] data, int id, boolean preKey)
public int getId()
public byte[] getData()
public boolean isPreKey()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public CharSequence toXML(String enclosingNamespace)
Element