libQuotient
A Qt library for building matrix clients
|
#include <qolminboundsession.h>
Public Member Functions | |
QByteArray | pickle (const PicklingKey &key) const |
Serialises an OlmInboundGroupSession to encrypted Base64. | |
QOlmExpected< std::pair< QByteArray, uint32_t > > | decrypt (const QByteArray &message) |
Decrypts ciphertext received for this group session. | |
QOlmExpected< QByteArray > | exportSession (uint32_t messageIndex) |
uint32_t | firstKnownIndex () const |
Get the first message index we know how to decrypt. | |
QByteArray | sessionId () const |
Get a base64-encoded identifier for this session. | |
bool | isVerified () const |
QByteArray | olmSessionId () const |
void | setOlmSessionId (const QByteArray &newOlmSessionId) |
QString | senderId () const |
The sender of this session. | |
void | setSenderId (const QString &senderId) |
OlmErrorCode | lastErrorCode () const |
const char * | lastError () const |
Static Public Member Functions | |
static QOlmExpected< QOlmInboundGroupSession > | create (const QByteArray &key) |
Creates a new instance of OlmInboundGroupSession . | |
static QOlmExpected< QOlmInboundGroupSession > | importSession (const QByteArray &key) |
Import an inbound group session, from a previous export. | |
static QOlmExpected< QOlmInboundGroupSession > | unpickle (QByteArray &&pickled, const PicklingKey &key) |
An in-bound group session is responsible for decrypting incoming communication in a Megolm session.
Definition at line 15 of file qolminboundsession.h.
|
static |
Creates a new instance of OlmInboundGroupSession
.
QOlmExpected< std::pair< QByteArray, uint32_t > > Quotient::QOlmInboundGroupSession::decrypt | ( | const QByteArray & | message | ) |
Decrypts ciphertext received for this group session.
QOlmExpected< QByteArray > Quotient::QOlmInboundGroupSession::exportSession | ( | uint32_t | messageIndex | ) |
Export the base64-encoded ratchet key for this session, at the given index, in a format which can be used by import.
uint32_t Quotient::QOlmInboundGroupSession::firstKnownIndex | ( | ) | const |
Get the first message index we know how to decrypt.
|
static |
Import an inbound group session, from a previous export.
bool Quotient::QOlmInboundGroupSession::isVerified | ( | ) | const |
OlmErrorCode Quotient::QOlmInboundGroupSession::lastErrorCode | ( | ) | const |
QByteArray Quotient::QOlmInboundGroupSession::olmSessionId | ( | ) | const |
The olm session that this session was received from. Required to get the device this session is from.
QByteArray Quotient::QOlmInboundGroupSession::pickle | ( | const PicklingKey & | key | ) | const |
Serialises an OlmInboundGroupSession
to encrypted Base64.
QString Quotient::QOlmInboundGroupSession::senderId | ( | ) | const |
The sender of this session.
QByteArray Quotient::QOlmInboundGroupSession::sessionId | ( | ) | const |
Get a base64-encoded identifier for this session.
|
static |
Deserialises from encrypted Base64 that was previously obtained by pickling an OlmInboundGroupSession
.