Class OmemoMessage.Sent

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jivesoftware.smack.packet.Message buildMessage​(org.jivesoftware.smack.packet.MessageBuilder messageBuilder, org.jxmpp.jid.Jid recipient)
      Return the OmemoElement wrapped in a Message ready to be sent.
      java.util.Set<OmemoDevice> getIntendedDevices()
      Return a list of all devices the sender originally intended to encrypt the message for.
      java.util.HashMap<OmemoDevice,​java.lang.Throwable> getSkippedDevices()
      Return a map of all skipped recipients and the reasons for skipping.
      boolean isMissingRecipients()
      Determine, if some recipients were skipped during encryption.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getIntendedDevices

        public java.util.Set<OmemoDevice> getIntendedDevices()
        Return a list of all devices the sender originally intended to encrypt the message for.
        Returns:
        list of intended recipients.
      • getSkippedDevices

        public java.util.HashMap<OmemoDevice,​java.lang.Throwable> getSkippedDevices()
        Return a map of all skipped recipients and the reasons for skipping.
        Returns:
        map of skipped recipients and reasons for that.
      • isMissingRecipients

        public boolean isMissingRecipients()
        Determine, if some recipients were skipped during encryption.
        Returns:
        true if recipients were skipped.
      • buildMessage

        public org.jivesoftware.smack.packet.Message buildMessage​(org.jivesoftware.smack.packet.MessageBuilder messageBuilder,
                                                                  org.jxmpp.jid.Jid recipient)
        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.