public class GroupSessionBuilder
extends java.lang.Object
GroupCipher
can be used to encrypt/decrypt messages in that session.
The built sessions are unidirectional: they can be used either for sending or for receiving, but not both. Sessions are constructed per (groupId + senderId + deviceId) tuple. Remote logical users are identified by their senderId, and each logical recipientId can have multiple physical devices.
| Constructor and Description |
|---|
GroupSessionBuilder(SenderKeyStore senderKeyStore) |
| Modifier and Type | Method and Description |
|---|---|
SenderKeyDistributionMessage |
create(SenderKeyName senderKeyName)
Construct a group session for sending messages.
|
void |
process(SenderKeyName senderKeyName,
SenderKeyDistributionMessage senderKeyDistributionMessage)
Construct a group session for receiving messages from senderKeyName.
|
public GroupSessionBuilder(SenderKeyStore senderKeyStore)
public void process(SenderKeyName senderKeyName, SenderKeyDistributionMessage senderKeyDistributionMessage)
senderKeyName - The (groupId, senderId, deviceId) tuple associated with the SenderKeyDistributionMessage.senderKeyDistributionMessage - A received SenderKeyDistributionMessage.public SenderKeyDistributionMessage create(SenderKeyName senderKeyName)
senderKeyName - The (groupId, senderId, deviceId) tuple. In this case, 'senderId' should be the caller.