platform/electron/certificates
Classes
Section titled “Classes”CertificateExceptions
Section titled “CertificateExceptions”Defined in: app/src/platform/electron/certificates.ts:10
Exceptions for certificates that the user accepted after the warning, for the rest of the session. An exception holds for one host and one certificate, by its fingerprint, so a site that shows another certificate later is refused again. It holds only in the session of the page that accepted it, so an exception made in a private window ends with its session and never reaches regular windows.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CertificateExceptions(
mayOverride):CertificateExceptions
Defined in: app/src/platform/electron/certificates.ts:17
Parameters
Section titled “Parameters”mayOverride
Section titled “mayOverride”() => boolean
Whether a policy lets people continue after the warning.
Returns
Section titled “Returns”Methods
Section titled “Methods”allow()
Section titled “allow()”allow(
contents):boolean
Defined in: app/src/platform/electron/certificates.ts:46
Accepts, for this session, the certificate that a page was just refused.
Parameters
Section titled “Parameters”contents
Section titled “contents”WebContents
The page.
Returns
Section titled “Returns”boolean
Whether there was such a certificate and a policy allows it.
attach()
Section titled “attach()”attach(
app):void
Defined in: app/src/platform/electron/certificates.ts:26
Accepts the certificates of the exceptions, and remembers which one a page was refused. Certificates of embedded frames are refused without a warning.
Parameters
Section titled “Parameters”App
The application.
Returns
Section titled “Returns”void