Class SessionBuilder


  • public class SessionBuilder
    extends java.lang.Object
    SessionBuilder is responsible for setting up encrypted sessions. Once a session has been established, SessionCipher can be used to encrypt/decrypt messages in that session.

    Sessions are built from one of three different possible vectors:

    1. A PreKeyBundle retrieved from a server.
    2. A PreKeySignalMessage received from a client.
    Sessions are constructed per recipientId + deviceId tuple. Remote logical users are identified by their recipientId, and each logical recipientId can have multiple physical devices. This class is not thread-safe.