Loading...
Searching...
No Matches
QXmppAtmTrustStorage.h
// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPATMTRUSTSTORAGE_H
#define QXMPPATMTRUSTSTORAGE_H
#include "QXmppTrustStorage.h"
#include <QList>
class QXmppTrustMessageKeyOwner;
class QXMPP_EXPORT QXmppAtmTrustStorage : virtual public QXmppTrustStorage
{
public:
virtual ~QXmppAtmTrustStorage() = default;
virtual QXmppTask<void> addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList<QXmppTrustMessageKeyOwner> &keyOwners) = 0;
virtual QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &keyIdsForAuthentication, const QList<QByteArray> &keyIdsForDistrusting) = 0;
virtual QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds) = 0;
virtual QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption) = 0;
virtual QXmppTask<QHash<bool, QMultiHash<QString, QByteArray>>> keysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds = {}) = 0;
};
#endif // QXMPPATMTRUSTSTORAGE_H
QXmppAtmTrustStorage
The QXmppAtmTrustStorage class stores trust data for XEP-0450: Automatic Trust Management (ATM).
Definition QXmppAtmTrustStorage.h:15
QXmppAtmTrustStorage::keysForPostponedTrustDecisions
virtual QXmppTask< QHash< bool, QMultiHash< QString, QByteArray > > > keysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &senderKeyIds={})=0
QXmppAtmTrustStorage::addKeysForPostponedTrustDecisions
virtual QXmppTask< void > addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList< QXmppTrustMessageKeyOwner > &keyOwners)=0
QXmppAtmTrustStorage::removeKeysForPostponedTrustDecisions
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption)=0
QXmppAtmTrustStorage::removeKeysForPostponedTrustDecisions
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &keyIdsForAuthentication, const QList< QByteArray > &keyIdsForDistrusting)=0
QXmppAtmTrustStorage::removeKeysForPostponedTrustDecisions
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &senderKeyIds)=0
QXmppTask
Definition QXmppTask.h:46
QXmppTrustMessageKeyOwner
The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-043...
Definition QXmppTrustMessageKeyOwner.h:18
QXmppTrustStorage
The QXmppTrustStorage class stores end-to-end encryption trust data.
Definition QXmppTrustStorage.h:16