QXmpp Version: 1.5.6
|
The QXmppTrustStorage class stores end-to-end encryption trust data. More...
Public Member Functions | |
virtual QXmppTask< void > | setSecurityPolicy (const QString &encryption, QXmpp::TrustSecurityPolicy securityPolicy)=0 |
virtual QXmppTask< void > | resetSecurityPolicy (const QString &encryption)=0 |
virtual QXmppTask< QXmpp::TrustSecurityPolicy > | securityPolicy (const QString &encryption)=0 |
virtual QXmppTask< void > | setOwnKey (const QString &encryption, const QByteArray &keyId)=0 |
virtual QXmppTask< void > | resetOwnKey (const QString &encryption)=0 |
virtual QXmppTask< QByteArray > | ownKey (const QString &encryption)=0 |
virtual QXmppTask< void > | addKeys (const QString &encryption, const QString &keyOwnerJid, const QList< QByteArray > &keyIds, QXmpp::TrustLevel trustLevel=QXmpp::TrustLevel::AutomaticallyDistrusted)=0 |
virtual QXmppTask< void > | removeKeys (const QString &encryption, const QList< QByteArray > &keyIds)=0 |
virtual QXmppTask< void > | removeKeys (const QString &encryption, const QString &keyOwnerJid)=0 |
virtual QXmppTask< void > | removeKeys (const QString &encryption)=0 |
virtual QXmppTask< QHash< QXmpp::TrustLevel, QMultiHash< QString, QByteArray > > > | keys (const QString &encryption, QXmpp::TrustLevels trustLevels={})=0 |
virtual QXmppTask< QHash< QString, QHash< QByteArray, QXmpp::TrustLevel > > > | keys (const QString &encryption, const QList< QString > &keyOwnerJids, QXmpp::TrustLevels trustLevels={})=0 |
virtual QXmppTask< bool > | hasKey (const QString &encryption, const QString &keyOwnerJid, QXmpp::TrustLevels trustLevels)=0 |
virtual QXmppTask< QHash< QString, QMultiHash< QString, QByteArray > > > | setTrustLevel (const QString &encryption, const QMultiHash< QString, QByteArray > &keyIds, QXmpp::TrustLevel trustLevel)=0 |
virtual QXmppTask< QHash< QString, QMultiHash< QString, QByteArray > > > | setTrustLevel (const QString &encryption, const QList< QString > &keyOwnerJids, QXmpp::TrustLevel oldTrustLevel, QXmpp::TrustLevel newTrustLevel)=0 |
virtual QXmppTask< QXmpp::TrustLevel > | trustLevel (const QString &encryption, const QString &keyOwnerJid, const QByteArray &keyId)=0 |
virtual QXmppTask< void > | resetAll (const QString &encryption)=0 |
The QXmppTrustStorage class stores end-to-end encryption trust data.
The term "key" is used for a public long-term key.
|
pure virtual |
Adds keys.
encryption | encryption protocol namespace |
keyOwnerJid | key owner's bare JID |
keyIds | IDs of the keys |
trustLevel | trust level of the keys |
|
pure virtual |
Returns whether at least one key of a key owner with a specific trust level is stored.
encryption | encryption protocol namespace |
keyOwnerJid | key owner's bare JID |
trustLevels | possible trust levels of the key |
|
pure virtual |
Returns the IDs of keys mapped to their trust levels for specific key owners.
If no trust levels are passed, all keys for encryption and keyOwnerJids are returned.
encryption | encryption protocol namespace |
keyOwnerJids | key owners' bare JIDs |
trustLevels | trust levels of the keys |
|
pure virtual |
Returns the JIDs of all key owners mapped to the IDs of their keys with specific trust levels.
If no trust levels are passed, all keys for encryption are returned.
encryption | encryption protocol namespace |
trustLevels | trust levels of the keys |
|
pure virtual |
Returns the own key (i.e., the key used by this client instance) for an encryption protocol.
encryption | encryption protocol namespace |
|
pure virtual |
Removes all keys for encryption.
encryption | encryption protocol namespace |
|
pure virtual |
Removes keys.
encryption | encryption protocol namespace |
keyIds | IDs of the keys |
|
pure virtual |
Removes all keys of a key owner.
encryption | encryption protocol namespace |
keyOwnerJid | key owner's bare JID |
|
pure virtual |
Resets all data for encryption.
encryption | encryption protocol namespace |
|
pure virtual |
Resets the own key (i.e., the key used by this client instance) for an encryption protocol.
encryption | encryption protocol namespace |
|
pure virtual |
Resets the security policy for an encryption protocol.
encryption | encryption protocol namespace |
|
pure virtual |
Returns the security policy for an encryption protocol.
encryption | encryption protocol namespace |
|
pure virtual |
Sets the own key (i.e., the key used by this client instance) for an encryption protocol.
encryption | encryption protocol namespace |
keyId | ID of the key |
|
pure virtual |
Sets the security policy for an encryption protocol.
encryption | encryption protocol namespace |
securityPolicy | security policy being applied |
|
pure virtual |
Sets the trust level of keys specified by their key owner and trust level.
encryption | encryption protocol namespace |
keyOwnerJids | key owners' bare JIDs |
oldTrustLevel | trust level being changed |
newTrustLevel | trust level being set |
|
pure virtual |
Sets the trust level of keys.
If a key is not stored, it is added to the storage.
encryption | encryption protocol namespace |
keyIds | key owners' bare JIDs mapped to the IDs of their keys |
trustLevel | trust level being set |
|
pure virtual |
Returns the trust level of a key.
If the key is not stored, the trust in that key is undecided.
encryption | encryption protocol namespace |
keyOwnerJid | key owner's bare JID |
keyId | ID of the key |