Package org.jivesoftware.smackx.omemo
Class OmemoMessage.Sent
java.lang.Object
org.jivesoftware.smackx.omemo.OmemoMessage
org.jivesoftware.smackx.omemo.OmemoMessage.Sent
- Enclosing class:
- OmemoMessage
Outgoing OMEMO message.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smackx.omemo.OmemoMessage
OmemoMessage.Received, OmemoMessage.Sent
-
Method Summary
Modifier and TypeMethodDescriptionbuildMessage
(MessageBuilder messageBuilder, Jid recipient) Return the OmemoElement wrapped in a Message ready to be sent.Return a list of all devices the sender originally intended to encrypt the message for.Return a map of all skipped recipients and the reasons for skipping.boolean
Determine, if some recipients were skipped during encryption.Methods inherited from class org.jivesoftware.smackx.omemo.OmemoMessage
getElement, getIv, getKey
-
Method Details
-
getIntendedDevices
Return a list of all devices the sender originally intended to encrypt the message for.- Returns:
- list of intended recipients.
-
getSkippedDevices
Return a map of all skipped recipients and the reasons for skipping.- Returns:
- map of skipped recipients and reasons for that.
-
isMissingRecipients
Determine, if some recipients were skipped during encryption.- Returns:
- true if recipients were skipped.
-
buildMessage
Return the OmemoElement wrapped in a Message ready to be sent. The message is addressed to recipient, contains the OmemoElement as well as an optional clear text hint as body, a MAM storage hint and an EME hint about OMEMO encryption.- Parameters:
messageBuilder
- a message builder which will be used to build the message.recipient
- recipient for the to-field of the message.- Returns:
- the build message.
-