Class SessionRecord

    • Method Detail

      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object
      • archiveCurrentState

        public void archiveCurrentState()
        Move the current SessionState into the list of "previous" session states, and replace the current SessionState with a fresh reset instance.
      • getSessionVersion

        public int getSessionVersion()
      • getRemoteRegistrationId

        public int getRemoteRegistrationId()
      • getLocalRegistrationId

        public int getLocalRegistrationId()
      • getRemoteIdentityKey

        public IdentityKey getRemoteIdentityKey()
      • getLocalIdentityKey

        public IdentityKey getLocalIdentityKey()
      • hasSenderChain

        public boolean hasSenderChain()
      • needsPniSignature

        public boolean needsPniSignature()
        Returns true if this session was initialized needing a PNI signature and has not received a reply.

        Precondition: `this.hasSenderChain()`

      • setNeedsPniSignature

        public void setNeedsPniSignature​(boolean needsPniSignature)
        Marks whether this session needs a PNI signature included in outgoing messages.

        Precondition: `this.hasSenderChain()`

      • currentRatchetKeyMatches

        public boolean currentRatchetKeyMatches​(ECPublicKey key)
      • serialize

        public byte[] serialize()
        Returns:
        a serialized version of the current SessionRecord.
      • getReceiverChainKeyValue

        public byte[] getReceiverChainKeyValue​(ECPublicKey senderEphemeral)
      • getSenderChainKeyValue

        public byte[] getSenderChainKeyValue()
      • getAliceBaseKey

        public byte[] getAliceBaseKey()