public static class OmemoElement.OmemoHeader extends Object implements NamedElement
Modifier and Type | Class and Description |
---|---|
static class |
OmemoElement.OmemoHeader.Key
Small class to collect key (byte[]), its id and whether its a prekey or not.
|
Constructor and Description |
---|
OmemoHeader(int sid,
ArrayList<OmemoElement.OmemoHeader.Key> keys,
byte[] iv) |
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
byte[] |
getIv() |
ArrayList<OmemoElement.OmemoHeader.Key> |
getKeys() |
int |
getSid()
Return the deviceId of the sender of the message.
|
CharSequence |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public OmemoHeader(int sid, ArrayList<OmemoElement.OmemoHeader.Key> keys, byte[] iv)
public int getSid()
public ArrayList<OmemoElement.OmemoHeader.Key> getKeys()
public byte[] getIv()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public CharSequence toXML(String enclosingNamespace)
Element