QWebEngineClientCertificateStore Class

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

头: #include <QWebEngineClientCertificateStore>
CMake: find_package(Qt6 COMPONENTS WebEngineCore REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
Since: Qt 5.13

公共函数

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

详细描述

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.

成员函数文档编制

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

添加 certificate 采用 privateKey to the in-memory client certificate store.

QList < 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 .