Package org.signal.libsignal.net
Class UnauthMessagesService
-
- All Implemented Interfaces:
public final class UnauthMessagesService
-
-
Constructor Summary
Constructors Constructor Description UnauthMessagesService(UnauthenticatedChatConnection connection)
-
Method Summary
Modifier and Type Method Description final CompletableFuture<RequestResult<MultiRecipientMessageResponse, MultiRecipientSendFailure>>sendMultiRecipientMessage(ByteArray payload, Long timestamp, MultiRecipientSendAuthorization auth, Boolean onlineOnly, Boolean urgent)Sends a multi-recipient message encrypted with Sealed Sender v2. -
-
Constructor Detail
-
UnauthMessagesService
UnauthMessagesService(UnauthenticatedChatConnection connection)
-
-
Method Detail
-
sendMultiRecipientMessage
final CompletableFuture<RequestResult<MultiRecipientMessageResponse, MultiRecipientSendFailure>> sendMultiRecipientMessage(ByteArray payload, Long timestamp, MultiRecipientSendAuthorization auth, Boolean onlineOnly, Boolean urgent)
Sends a multi-recipient message encrypted with Sealed Sender v2.
Messages to accounts that have been unregistered will be dropped by the server and (if using MultiRecipientSendAuthorization.GroupSend) reported in the resulting MultiRecipientMessageResponse.
All exceptions are mapped into RequestResult; unexpected ones will be treated as RequestResult.ApplicationError. A RequestUnauthorizedException means
authis not valid for the recipients specified inpayload; this cannot happen whenauthis MultiRecipientSendAuthorization.Story. A MismatchedDeviceException indicates the recipient devices specified inpayloadare out of date in some way. (This is not a "partial success" result; the message has not been sent to anybody.)
-
-
-
-