QWebEngineClientCertificateStore Class

The QWebEngineClientCertificateStore class provides an in-memory store for client certificates. More...

Header: #include <QWebEngineClientCertificateStore>
Since: Qt 5.13

This class was introduced in Qt 5.13.

Public Functions

void add(const QSslCertificate &certificate, const QSslKey &privateKey)
QVector<QSslCertificate> certificates() const
void clear()
void remove(const QSslCertificate &certificate)

Detailed Description

The class allows to store client certificates in an in-memory store. When a web site requests an SSL client certificate, the QWebEnginePage::selectClientCertificate signal is emitted with matching certificates from the native certificate store or the in-memory store. The getInstance() method can be used to access the single instance of the class.

Member Function Documentation

void QWebEngineClientCertificateStore::add(const QSslCertificate &certificate, const QSslKey &privateKey)

Adds a certificate with the privateKey to the in-memory client certificate store.

QVector<QSslCertificate> QWebEngineClientCertificateStore::certificates() const

Returns a list of the client certificates in the in-memory store. Returns an empty list if the store does not contain any certificates.

void QWebEngineClientCertificateStore::clear()

Clears all the client certificates from the in-memory store.

void QWebEngineClientCertificateStore::remove(const QSslCertificate &certificate)

Deletes all the instances of the client certificate in the in-memory client certificate store that matches the certificate certificate.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.