QWebEngineClientCertificateSelection Class
QWebEngineClientCertSelection 类封装了客户端证书选择。更多
头文件: | #include <QWebEngineClientCertificateSelection> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
公共函数
QList<QSslCertificate> | certificates() const |
QUrl | host() const |
void | select(const QSslCertificate &certificate) |
void | selectNone() |
详细说明
当网站请求 SSL 客户端证书,并在系统的客户端证书存储中找到一个或多个证书时,该类提供了可供选择的证书访问权限,以及选择一个证书的方法。
选择是异步的。如果未选择证书,且对象的副本也未存活,则将在没有证书的情况下继续加载。
另请参阅 QWebEnginePage::selectClientCertificate().
成员函数文档
QList<QSslCertificate> QWebEngineClientCertificateSelection::certificates() const
返回可供选择的客户证书。
另请参阅 select()。
QUrl QWebEngineClientCertificateSelection::host() const
返回请求客户证书的服务器的主机和端口。
void QWebEngineClientCertificateSelection::select(const QSslCertificate &certificate)
选择客户证书certificate 。该证书必须是certificates() 中提供的证书之一。
另请参阅 certificates() 和selectNone()。
void QWebEngineClientCertificateSelection::selectNone()
继续,不使用任何提供的证书。如果没有选择,这与销毁该对象最后一个副本时的操作相同。
另请参阅 select()。
© 2025 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.