#include <qolmaccount.h>
An olm account manages all cryptographic keys used on a device.
Definition at line 25 of file qolmaccount.h.
◆ QOlmAccount()
◆ 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()
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()
◆ 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()
Serialises an OlmAccount to encrypted Base64.
◆ removeOneTimeKeys()
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]
◆ signIdentityKeys()
QByteArray Quotient::QOlmAccount::signIdentityKeys |
( |
| ) |
const |
◆ signOneTimeKeys()
◆ unpickle()
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: