#include <qolminboundsession.h>
An in-bound group session is responsible for decrypting incoming communication in a Megolm session.
Definition at line 15 of file qolminboundsession.h.
◆ create()
Creates a new instance of OlmInboundGroupSession
.
◆ decrypt()
QOlmExpected<std::pair<QByteArray, uint32_t> > Quotient::QOlmInboundGroupSession::decrypt |
( |
const QByteArray & |
message | ) |
|
Decrypts ciphertext received for this group session.
◆ exportSession()
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.
◆ firstKnownIndex()
uint32_t Quotient::QOlmInboundGroupSession::firstKnownIndex |
( |
| ) |
const |
Get the first message index we know how to decrypt.
◆ importSession()
Import an inbound group session, from a previous export.
◆ isVerified()
bool Quotient::QOlmInboundGroupSession::isVerified |
( |
| ) |
const |
◆ lastError()
const char* Quotient::QOlmInboundGroupSession::lastError |
( |
| ) |
const |
◆ lastErrorCode()
OlmErrorCode Quotient::QOlmInboundGroupSession::lastErrorCode |
( |
| ) |
const |
◆ olmSessionId()
QByteArray Quotient::QOlmInboundGroupSession::olmSessionId |
( |
| ) |
const |
The olm session that this session was received from. Required to get the device this session is from.
◆ pickle()
QByteArray Quotient::QOlmInboundGroupSession::pickle |
( |
const PicklingKey & |
key | ) |
const |
Serialises an OlmInboundGroupSession
to encrypted Base64.
◆ senderId()
QString Quotient::QOlmInboundGroupSession::senderId |
( |
| ) |
const |
The sender of this session.
◆ sessionId()
QByteArray Quotient::QOlmInboundGroupSession::sessionId |
( |
| ) |
const |
Get a base64-encoded identifier for this session.
◆ setOlmSessionId()
void Quotient::QOlmInboundGroupSession::setOlmSessionId |
( |
const QByteArray & |
newOlmSessionId | ) |
|
◆ setSenderId()
void Quotient::QOlmInboundGroupSession::setSenderId |
( |
const QString & |
senderId | ) |
|
◆ unpickle()
Deserialises from encrypted Base64 that was previously obtained by pickling an OlmInboundGroupSession
.
The documentation for this class was generated from the following file: