#include <qolmaccount.h>
An olm account manages all cryptographic keys used on a device.
QOlmAccount(QString userId, QString deviceId, QObject *parent=nullptr)
Definition at line 25 of file qolmaccount.h.
◆ QOlmAccount()
Quotient::QOlmAccount::QOlmAccount |
( |
QString |
userId, |
|
|
QString |
deviceId, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ createInboundSession()
Creates an inbound session for sending/receiving messages from a received 'prekey' message.
- Parameters
-
preKeyMessage | An Olm pre-key message that was encrypted for this account. |
◆ createInboundSessionFrom()
Creates an inbound session for sending/receiving messages from a received 'prekey' message.
- Parameters
-
theirIdentityKey | - The identity key of the Olm account that encrypted this Olm message. |
◆ createOutboundSession()
QOlmExpected<QOlmSession> Quotient::QOlmAccount::createOutboundSession |
( |
const QByteArray & |
theirIdentityKey, |
|
|
const QByteArray & |
theirOneTimeKey |
|
) |
| const |
Creates an outbound session for sending messages to a specific identity and one time key.
◆ createUploadKeyRequest()
◆ deviceKeys()
DeviceKeys Quotient::QOlmAccount::deviceKeys |
( |
| ) |
const |
◆ generateOneTimeKeys()
size_t Quotient::QOlmAccount::generateOneTimeKeys |
( |
size_t |
numberOfKeys | ) |
|
Generates the supplied number of one time keys.
◆ identityKeys()
Returns the account's public identity keys already formatted as JSON.
◆ lastError()
const char* Quotient::QOlmAccount::lastError |
( |
| ) |
const |
◆ lastErrorCode()
OlmErrorCode Quotient::QOlmAccount::lastErrorCode |
( |
| ) |
const |
◆ markKeysAsPublished()
void Quotient::QOlmAccount::markKeysAsPublished |
( |
| ) |
|
◆ maxNumberOfOneTimeKeys()
size_t Quotient::QOlmAccount::maxNumberOfOneTimeKeys |
( |
| ) |
const |
Maximum number of one time keys that this OlmAccount can currently hold.
◆ needsSave
void Quotient::QOlmAccount::needsSave |
( |
| ) |
|
|
signal |
◆ oneTimeKeys()
Gets the OlmAccount's one time keys formatted as JSON.
◆ pickle()
QByteArray Quotient::QOlmAccount::pickle |
( |
const PicklingKey & |
key | ) |
const |
Serialises an OlmAccount to encrypted Base64.
◆ removeOneTimeKeys()
OlmErrorCode Quotient::QOlmAccount::removeOneTimeKeys |
( |
const QOlmSession & |
session | ) |
|
Remove the one time key used to create the supplied session.
◆ setupNewAccount()
void Quotient::QOlmAccount::setupNewAccount |
( |
| ) |
|
◆ sign() [1/2]
QByteArray Quotient::QOlmAccount::sign |
( |
const QByteArray & |
message | ) |
const |
Returns the signature of the supplied message.
◆ sign() [2/2]
QByteArray Quotient::QOlmAccount::sign |
( |
const QJsonObject & |
message | ) |
const |
◆ signIdentityKeys()
QByteArray Quotient::QOlmAccount::signIdentityKeys |
( |
| ) |
const |
◆ signOneTimeKeys()
◆ unpickle()
OlmErrorCode Quotient::QOlmAccount::unpickle |
( |
QByteArray && |
pickled, |
|
|
const PicklingKey & |
key |
|
) |
| |
Deserialises from encrypted Base64 that was previously obtained by pickling a QOlmAccount
.
- Note
- This needs to be called before any other action or use setupNewAccount() instead.
The documentation for this class was generated from the following file: