Package org.jivesoftware.smackx.omemo
Class OmemoMessage
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.OmemoMessage
-
- Direct Known Subclasses:
OmemoMessage.Received
,OmemoMessage.Sent
public class OmemoMessage extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OmemoMessage.Received
Incoming OMEMO message.static class
OmemoMessage.Sent
Outgoing OMEMO message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OmemoElement
getElement()
Return the original OmemoElement (<encrypted/>).byte[]
getIv()
Return the initialization vector belonging to the key.byte[]
getKey()
Return the messageKey (or transported key in case of a KeyTransportMessage).
-
-
-
Method Detail
-
getElement
public OmemoElement getElement()
Return the original OmemoElement (<encrypted/>).- Returns:
- omemoElement of the message
-
getKey
public byte[] getKey()
Return the messageKey (or transported key in case of a KeyTransportMessage).- Returns:
- encryption key that protects the message payload
-
getIv
public byte[] getIv()
Return the initialization vector belonging to the key.- Returns:
- initialization vector
-
-