Either an outbound or inbound session for secure communication.
More...
#include <qolmsession.h>
Either an outbound or inbound session for secure communication.
Definition at line 17 of file qolmsession.h.
◆ decrypt()
Decrypts a message using this session. Decoding is lossy, meaning if the decrypted plaintext contains invalid UTF-8 symbols, they will be returned as U+FFFD
.
◆ encrypt()
QOlmMessage Quotient::QOlmSession::encrypt |
( |
const QByteArray & |
plaintext | ) |
const |
Encrypts a plaintext message using the session.
◆ hasReceivedMessage()
bool Quotient::QOlmSession::hasReceivedMessage |
( |
| ) |
const |
Checker for any received messages for this session.
◆ lastError()
const char* Quotient::QOlmSession::lastError |
( |
| ) |
const |
◆ lastErrorCode()
OlmErrorCode Quotient::QOlmSession::lastErrorCode |
( |
| ) |
const |
◆ matchesInboundSession()
bool Quotient::QOlmSession::matchesInboundSession |
( |
const QOlmMessage & |
preKeyMessage | ) |
const |
Checks if the 'prekey' message is for this in-bound session.
◆ matchesInboundSessionFrom()
bool Quotient::QOlmSession::matchesInboundSessionFrom |
( |
QByteArray |
theirIdentityKey, |
|
|
const QOlmMessage & |
preKeyMessage |
|
) |
| const |
Checks if the 'prekey' message is for this in-bound session.
◆ pickle()
QByteArray Quotient::QOlmSession::pickle |
( |
const PicklingKey & |
key | ) |
const |
◆ sessionId()
QByteArray Quotient::QOlmSession::sessionId |
( |
| ) |
const |
Get a base64-encoded identifier for this session.
◆ unpickle()
Deserialises from encrypted Base64 previously made with pickle()
◆ operator<
◆ QOlmAccount
The documentation for this class was generated from the following file: