QWebEngineClientCertificateSelection Class

The QWebEngineClientCertSelection class wraps a client certificate selection. More...

Header: #include <QWebEngineClientCertificateSelection>
qmake: QT += webenginewidgets
Since: Qt 5.12

Public Functions

QWebEngineClientCertificateSelection(const QWebEngineClientCertificateSelection &)
~QWebEngineClientCertificateSelection()
QVector<QSslCertificate> certificates() const
QUrl host() const
void select(const QSslCertificate &certificate)
void selectNone()
QWebEngineClientCertificateSelection &operator=(const QWebEngineClientCertificateSelection &)

Detailed Description

The QWebEngineClientCertSelection class wraps a client certificate selection.

When a web site requests an SSL client certificate, and one or more certificates are found in the system's client certificate store, this class provides access to the certificates to choose from, as well as a method for selecting one.

The selection is asynchronous. If no certificate is selected and no copy of the object is kept alive, loading will continue without a certificate.

See also QWebEnginePage::selectClientCertificate().

Member Function Documentation

QWebEngineClientCertificateSelection::QWebEngineClientCertificateSelection(const QWebEngineClientCertificateSelection &)

Default constructs an instance of QWebEngineClientCertificateSelection.

QWebEngineClientCertificateSelection::~QWebEngineClientCertificateSelection()

Destroys the instance of QWebEngineClientCertificateSelection.

QVector<QSslCertificate> QWebEngineClientCertificateSelection::certificates() const

Returns the client certificates available to choose from.

See also select().

QUrl QWebEngineClientCertificateSelection::host() const

Returns the host and port of the server requesting the client certificate.

void QWebEngineClientCertificateSelection::select(const QSslCertificate &certificate)

Selects the client certificate certificate. The certificate must be one of those offered in certificates().

See also certificates() and selectNone().

void QWebEngineClientCertificateSelection::selectNone()

Continue without using any of the offered certificates. This is the same action as taken when destroying the last copy of this object if no selection has been made.

See also select().

QWebEngineClientCertificateSelection &QWebEngineClientCertificateSelection::operator=(const QWebEngineClientCertificateSelection &)

Copy-assignment operator.

© 2020 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.