QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppAtmTrustStorage.h
1// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPATMTRUSTSTORAGE_H
6#define QXMPPATMTRUSTSTORAGE_H
7
8#include "QXmppTrustStorage.h"
9
10#include <QList>
11
13
14class QXMPP_EXPORT QXmppAtmTrustStorage : virtual public QXmppTrustStorage
15{
16public:
17 virtual ~QXmppAtmTrustStorage() = default;
18
19 virtual QXmppTask<void> addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList<QXmppTrustMessageKeyOwner> &keyOwners) = 0;
20 virtual QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &keyIdsForAuthentication, const QList<QByteArray> &keyIdsForDistrusting) = 0;
21 virtual QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds) = 0;
22 virtual QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption) = 0;
23 virtual QXmppTask<QHash<bool, QMultiHash<QString, QByteArray>>> keysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds = {}) = 0;
24};
25
26#endif // QXMPPATMTRUSTSTORAGE_H
The QXmppAtmTrustStorage class stores trust data for XEP-0450: Automatic Trust Management (ATM).
Definition QXmppAtmTrustStorage.h:15
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption)=0
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< QHash< bool, QMultiHash< QString, QByteArray > > > keysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &senderKeyIds={})=0
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &senderKeyIds)=0
Definition QXmppTask.h:62
The QXmppTrustMessageKeyOwner class represents a key owner of the trust message as defined by XEP-043...
Definition QXmppTrustMessageKeyOwner.h:17
The QXmppTrustStorage class stores end-to-end encryption trust data.
Definition QXmppTrustStorage.h:16