9#include "messageviewer_export.h"
13namespace MessageViewer
25 enum CanonicalizationType : uint8_t {
30 enum class HashingAlgorithmType : uint8_t {
36 Q_ENUM(HashingAlgorithmType)
38 [[nodiscard]]
bool parseDKIM(
const QString &header);
40 [[nodiscard]]
int version()
const;
41 void setVersion(
int version);
43 [[nodiscard]] HashingAlgorithmType hashingAlgorithm()
const;
44 void setHashingAlgorithm(DKIMInfo::HashingAlgorithmType type);
46 [[nodiscard]]
QString domain()
const;
47 void setDomain(
const QString &domain);
49 [[nodiscard]]
QString selector()
const;
50 void setSelector(
const QString &selector);
52 [[nodiscard]]
QString bodyHash()
const;
53 void setBodyHash(
const QString &bodyHash);
55 [[nodiscard]]
bool isValid()
const;
58 void setListSignedHeader(
const QStringList &listSignedHeader);
60 [[nodiscard]]
QString signingAlgorithm()
const;
61 void setSigningAlgorithm(
const QString &signingAlgorithm);
63 [[nodiscard]] qint64 signatureTimeStamp()
const;
64 void setSignatureTimeStamp(qint64 signatureTimeStamp);
66 [[nodiscard]]
QString query()
const;
67 void setQuery(
const QString &query);
69 [[nodiscard]] qint64 expireTime()
const;
70 void setExpireTime(qint64 expireTime);
72 [[nodiscard]]
QString signature()
const;
73 void setSignature(
const QString &signature);
75 [[nodiscard]]
QString agentOrUserIdentifier()
const;
76 void setAgentOrUserIdentifier(
const QString &agentOrUserIdentifier);
78 [[nodiscard]]
int bodyLengthCount()
const;
79 void setBodyLengthCount(
int bodyLengthCount);
81 [[nodiscard]] CanonicalizationType headerCanonization()
const;
82 void setHeaderCanonization(CanonicalizationType headerCanonization);
84 [[nodiscard]] CanonicalizationType bodyCanonization()
const;
85 void setBodyCanonization(CanonicalizationType bodyCanonization);
87 [[nodiscard]]
bool operator==(
const DKIMInfo &other)
const;
89 [[nodiscard]]
QStringList copiedHeaderField()
const;
90 void setCopiedHeaderField(
const QStringList &copiedHeaderField);
92 [[nodiscard]]
QString iDomain()
const;
93 void setIDomain(
const QString &iDomain);
96 MESSAGEVIEWER_NO_EXPORT
void parseCanonicalization(
const QString &str);
97 MESSAGEVIEWER_NO_EXPORT
void parseAlgorithm(
const QString &str);
98 HashingAlgorithmType mHashingAlgorithm = HashingAlgorithmType::Any;
105 QString mAgentOrUserIdentifier;
109 qint64 mSignatureTimeStamp = -1;
110 qint64 mExpireTime = -1;
112 int mBodyLengthCount = -1;
113 CanonicalizationType mHeaderCanonization = Unknown;
114 CanonicalizationType mBodyCanonization = Unknown;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:58:48 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.