blob: fcebbe2b1862738a99fda4ee615f898d2418dd18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QWEBENGINECLIENTCERTIFICATESTORE_H
#define QWEBENGINECLIENTCERTIFICATESTORE_H
#include <QtWebEngineCore/qtwebenginecoreglobal.h>
#include <QtNetwork/qtnetwork-config.h>
#if QT_CONFIG(ssl)
#include <QtCore/qlist.h>
#include <QtNetwork/qsslcertificate.h>
#include <QtNetwork/qsslkey.h>
namespace QtWebEngineCore {
struct ClientCertificateStoreData;
class ProfileAdapter;
} // namespace QtWebEngineCore
QT_BEGIN_NAMESPACE
class Q_WEBENGINECORE_EXPORT QWebEngineClientCertificateStore
{
public:
void add(const QSslCertificate &certificate, const QSslKey &privateKey);
QList<QSslCertificate> certificates() const;
void remove(const QSslCertificate &certificate);
void clear();
private:
friend class QtWebEngineCore::ProfileAdapter;
Q_DISABLE_COPY(QWebEngineClientCertificateStore)
QWebEngineClientCertificateStore(QtWebEngineCore::ClientCertificateStoreData *storeData);
~QWebEngineClientCertificateStore();
QtWebEngineCore::ClientCertificateStoreData *m_storeData;
};
QT_END_NAMESPACE
#endif // QT_CONFIG(ssl)
#endif // QWebEngineClientCertificateStore_H
|