KD SOAP API Documentation: KDSoapAuthentication.h Source File

| KD SOAP API Documentation 2.2

Loading...
Searching...
No Matches
KDSoapAuthentication.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Soap project.
4**
5** SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10#ifndef KDSOAPAUTHENTICATION_H
11#define KDSOAPAUTHENTICATION_H
12
13#include "KDSoapGlobal.h"
14#include <QtCore/QUrl>
15QT_BEGIN_NAMESPACE
16class QAuthenticator;
17class QDateTime;
18class QNetworkReply;
19class QXmlStreamWriter;
20QT_END_NAMESPACE
21class KDSoapNamespacePrefixes;
22
30 class KDSOAP_EXPORT KDSoapAuthentication
31{
32public:
33 friend class KDSoapMessageWriter;
34 friend class KDSoapClientInterfacePrivate;
35 friend class KDSoapThreadTask;
36
40 KDSoapAuthentication();
44 KDSoapAuthentication(const KDSoapAuthentication &other);
48 ~KDSoapAuthentication();
49
53 void setUser(const QString &user);
57 QString user() const;
58
62 void setPassword(const QString &password);
66 QString password() const;
67
71 void setUsePasswordDigest(const bool usePasswordDigest);
75 bool usePasswordDigest() const;
76
83 void setUseWSUsernameToken(bool useWSUsernameToken);
88 bool useWSUsernameToken() const;
89
95 void setOverrideWSUsernameCreatedTime(QDateTime overrideWSUsernameCreatedTime);
100 QDateTime overrideWSUsernameCreatedTime() const;
101
107 void setOverrideWSUsernameNonce(QByteArray overrideWSUsernameNonce);
112 QByteArray overrideWSUsernameNonce() const;
113
118 bool hasAuth() const;
119
123 KDSoapAuthentication &operator=(const KDSoapAuthentication &other);
124
125private:
129 void handleAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
130
134 bool hasWSUsernameTokenHeader() const;
135
139 void writeWSUsernameTokenHeader(QXmlStreamWriter &writer) const;
140
141private:
142 class Private;
143 Private *const d;
144};
145
146#endif // KDSOAPAUTHENTICATION_H
KDSoapGlobal.h
KDSOAP_EXPORT
#define KDSOAP_EXPORT
Definition KDSoapGlobal.h:22
KDSoapAuthentication
Definition KDSoapAuthentication.h:31
KDSoapClientInterfacePrivate
Definition KDSoapClientInterface_p.h:29
KDSoapMessageWriter
Definition KDSoapMessageWriter_p.h:31
KDSoapNamespacePrefixes
Definition KDSoapNamespacePrefixes_p.h:20
KDSoapThreadTask
Definition KDSoapClientThread_p.h:68
QAuthenticator
QByteArray
QDateTime
QNetworkReply
QString
QXmlStreamWriter

© 2010-2024 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated on Sun Jan 7 2024 11:47:36 for KD SOAP API Documentation by doxygen 1.9.8