public abstract class OmemoHeaderElement extends Object implements NamedElement
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_IV |
static String |
ATTR_SID |
static String |
NAME_HEADER |
Constructor and Description |
---|
OmemoHeaderElement(int sid,
List<OmemoKeyElement> keys,
byte[] iv) |
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
byte[] |
getIv() |
ArrayList<OmemoKeyElement> |
getKeys() |
int |
getSid()
Return the deviceId of the sender of the message.
|
CharSequence |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String NAME_HEADER
public static final String ATTR_SID
public static final String ATTR_IV
public OmemoHeaderElement(int sid, List<OmemoKeyElement> keys, byte[] iv)
public int getSid()
public ArrayList<OmemoKeyElement> getKeys()
public byte[] getIv()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public CharSequence toXML(String enclosingNamespace)
Element