Interface CertificateErrorCallback

All Superinterfaces:
AsyncCallback<CertificateErrorCallback.Params,CertificateErrorCallback.Action>, BrowserAsyncCallback<CertificateErrorCallback.Params,CertificateErrorCallback.Action>, BrowserCallback, Callback

The callback is invoked when an SSL certificate error occurs during loading a web page. The passed CertificateErrorCallback.Params object contains information about the problematic SSL certificate.

Use the CertificateErrorCallback.Action.allow() method to allow the certificate and continue loading the web page.

Use the CertificateErrorCallback.Action.deny() method to deny the certificate and continue loading the web page. An error page will be loaded. This is the default behavior.

Use the CertificateErrorCallback.Action.cancel() method to cancel loading.

If the callback throws an exception, the CertificateErrorCallback.Action.deny() method will be invoked.