QWebEngineClientCertificateSelection 類

QWebEngineClientCertSelection 類包裹客戶端證書選定。 更多...

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

該類在 Qt 5.12 引入。

公共函數

QVector<QSslCertificate> certificates () const
QUrl host () const
void select (const QSslCertificate & certificate )
void selectNone ()

詳細描述

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.

另請參閱 QWebEnginePage::selectClientCertificate ().

成員函數文檔編製

QVector < QSslCertificate > QWebEngineClientCertificateSelection:: certificates () const

Returns the client certificates available to choose from.

另請參閱 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 ().

另請參閱 certificates () 和 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.

另請參閱 select ().