<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qwebenginecertificateerror.cpp --> <title>QWebEngineCertificateError Class | Qt WebEngine 5.9</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.9</td><td ><a href="qtwebengine-index.html">Qt WebEngine</a></td><td ><a href="qtwebengine-modules.html">C++ Classes</a></td><td >QWebEngineCertificateError</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QWebEngineCertificateError Class</h1> <!-- $$$QWebEngineCertificateError-brief --> <p>The <a href="qwebenginecertificateerror.html">QWebEngineCertificateError</a> class provides information about a certificate error. <a href="#details">More...</a></p> <!-- @@@QWebEngineCertificateError --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QWebEngineCertificateError></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += webenginewidgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.4</td></tr></table></div><ul> <li><a href="qwebenginecertificateerror-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2 id="public-types">Public Types</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebenginecertificateerror.html#Error-enum">Error</a></b> { SslPinnedKeyNotInCertificateChain, CertificateCommonNameInvalid, CertificateDateInvalid, CertificateAuthorityInvalid, ..., CertificateTransparencyRequired }</td></tr> </table></div> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Error </td><td class="memItemRight bottomAlign"><b><a href="qwebenginecertificateerror.html#error">error</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebenginecertificateerror.html#errorDescription">errorDescription</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebenginecertificateerror.html#isOverridable">isOverridable</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qwebenginecertificateerror.html#url">url</a></b>() const</td></tr> </table></div> <a name="details"></a> <!-- $$$QWebEngineCertificateError-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qwebenginecertificateerror.html">QWebEngineCertificateError</a> class provides information about a certificate error.</p> <p>Provides information about a certificate error. This class is used as a parameter of <a href="qwebenginepage.html#certificateError">QWebEnginePage::certificateError</a>().</p> </div> <!-- @@@QWebEngineCertificateError --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$Error$$$SslPinnedKeyNotInCertificateChain$$$CertificateCommonNameInvalid$$$CertificateDateInvalid$$$CertificateAuthorityInvalid$$$CertificateContainsErrors$$$CertificateNoRevocationMechanism$$$CertificateUnableToCheckRevocation$$$CertificateRevoked$$$CertificateInvalid$$$CertificateWeakSignatureAlgorithm$$$CertificateNonUniqueName$$$CertificateWeakKey$$$CertificateNameConstraintViolation$$$CertificateValidityTooLong$$$CertificateTransparencyRequired --> <h3 class="fn" id="Error-enum"><a name="Error-enum"></a>enum QWebEngineCertificateError::<span class="name">Error</span></h3> <p>This enum describes the type of certificate error encountered.</p> <p>The values of this enum type match the SSL errors Chromium provides. QSslError::SslError values are not used directly, because the Qt error categories cannot be mapped to the Chromium error categories.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::SslPinnedKeyNotInCertificateChain</code></td><td class="topAlign tblval"><code>-150</code></td><td class="topAlign">The certificate did not match the built-in public keys pinned for the host name.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateCommonNameInvalid</code></td><td class="topAlign tblval"><code>-200</code></td><td class="topAlign">The certificate's common name did not match the host name.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateDateInvalid</code></td><td class="topAlign tblval"><code>-201</code></td><td class="topAlign">The certificate is not valid at the current date and time.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateAuthorityInvalid</code></td><td class="topAlign tblval"><code>-202</code></td><td class="topAlign">The certificate is not signed by a trusted authority.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateContainsErrors</code></td><td class="topAlign tblval"><code>-203</code></td><td class="topAlign">The certificate contains errors.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateNoRevocationMechanism</code></td><td class="topAlign tblval"><code>-204</code></td><td class="topAlign">The certificate has no mechanism for determining if it has been revoked.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateUnableToCheckRevocation</code></td><td class="topAlign tblval"><code>-205</code></td><td class="topAlign">Revocation information for the certificate is not available.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateRevoked</code></td><td class="topAlign tblval"><code>-206</code></td><td class="topAlign">The certificate has been revoked.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateInvalid</code></td><td class="topAlign tblval"><code>-207</code></td><td class="topAlign">The certificate is invalid.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateWeakSignatureAlgorithm</code></td><td class="topAlign tblval"><code>-208</code></td><td class="topAlign">The certificate is signed using a weak signature algorithm.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateNonUniqueName</code></td><td class="topAlign tblval"><code>-210</code></td><td class="topAlign">The host name specified in the certificate is not unique.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateWeakKey</code></td><td class="topAlign tblval"><code>-211</code></td><td class="topAlign">The certificate contains a weak key.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateNameConstraintViolation</code></td><td class="topAlign tblval"><code>-212</code></td><td class="topAlign">The certificate claimed DNS names that are in violation of name constraints.</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateValidityTooLong</code></td><td class="topAlign tblval"><code>-213</code></td><td class="topAlign">The certificate has a validity period that is too long. (Added in Qt 5.7)</td></tr> <tr><td class="topAlign"><code>QWebEngineCertificateError::CertificateTransparencyRequired</code></td><td class="topAlign tblval"><code>-214</code></td><td class="topAlign">Certificate Transparency was required for this connection, but the server did not provide CT information that complied with the policy. (Added in Qt 5.8)</td></tr> </table></div> <!-- @@@Error --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$error[overload1]$$$error --> <h3 class="fn" id="error"><a name="error"></a><span class="type"><a href="qwebenginecertificateerror.html#Error-enum">Error</a></span> QWebEngineCertificateError::<span class="name">error</span>() const</h3> <p>Returns the type of the error.</p> <p><b>See also </b><a href="qwebenginecertificateerror.html#errorDescription">errorDescription</a>() and <a href="qwebenginecertificateerror.html#isOverridable">isOverridable</a>().</p> <!-- @@@error --> <!-- $$$errorDescription[overload1]$$$errorDescription --> <h3 class="fn" id="errorDescription"><a name="errorDescription"></a><span class="type">QString</span> QWebEngineCertificateError::<span class="name">errorDescription</span>() const</h3> <p>Returns a short localized human-readable description of the error.</p> <p><b>See also </b><a href="qwebenginecertificateerror.html#error">error</a>(), <a href="qwebenginecertificateerror.html#url">url</a>(), and <a href="qwebenginecertificateerror.html#isOverridable">isOverridable</a>().</p> <!-- @@@errorDescription --> <!-- $$$isOverridable[overload1]$$$isOverridable --> <h3 class="fn" id="isOverridable"><a name="isOverridable"></a><span class="type">bool</span> QWebEngineCertificateError::<span class="name">isOverridable</span>() const</h3> <p>Returns whether this error can be overridden and accepted.</p> <p><b>See also </b><a href="qwebenginecertificateerror.html#error">error</a>() and <a href="qwebenginecertificateerror.html#errorDescription">errorDescription</a>().</p> <!-- @@@isOverridable --> <!-- $$$url[overload1]$$$url --> <h3 class="fn" id="url"><a name="url"></a><span class="type">QUrl</span> QWebEngineCertificateError::<span class="name">url</span>() const</h3> <p>Returns the URL that triggered the error.</p> <p><b>See also </b><a href="qwebenginecertificateerror.html#error">error</a>() and <a href="qwebenginecertificateerror.html#errorDescription">errorDescription</a>().</p> <!-- @@@url --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> 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. </p> </div> </body> </html>