public abstract class OmemoElement extends Object implements ExtensionElement
Modifier and Type | Class and Description |
---|---|
static class |
OmemoElement.OmemoHeader
Header element of the message.
|
Modifier and Type | Field and Description |
---|---|
static String |
ENCRYPTED |
protected OmemoElement.OmemoHeader |
header |
static String |
HEADER |
static String |
IV |
static String |
KEY |
protected byte[] |
payload |
static String |
PAYLOAD |
static String |
PREKEY |
static String |
RID |
static String |
SID |
static int |
TYPE_OMEMO_MESSAGE |
static int |
TYPE_OMEMO_PREKEY_MESSAGE |
Constructor and Description |
---|
OmemoElement(OmemoElement.OmemoHeader header,
byte[] payload)
Create a new OmemoMessageElement from a header and a payload.
|
Modifier and Type | Method and Description |
---|---|
OmemoElement.OmemoHeader |
getHeader() |
byte[] |
getPayload()
Return the payload of the message.
|
boolean |
isKeyTransportElement() |
boolean |
isMessageElement() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespace
getElementName
public static final int TYPE_OMEMO_PREKEY_MESSAGE
public static final int TYPE_OMEMO_MESSAGE
public static final String ENCRYPTED
public static final String HEADER
public static final String SID
public static final String KEY
public static final String RID
public static final String PREKEY
public static final String IV
public static final String PAYLOAD
protected final OmemoElement.OmemoHeader header
protected final byte[] payload
public OmemoElement(OmemoElement.OmemoHeader header, byte[] payload)
header
- header of the messagepayload
- payloadpublic OmemoElement.OmemoHeader getHeader()
public byte[] getPayload()
public boolean isKeyTransportElement()
public boolean isMessageElement()