IBrowserSelectCertificateHandler Property |
Namespace: DotNetBrowser.Browser
IHandler<SelectCertificateParameters, SelectCertificateResponse> SelectCertificateHandler { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IBrowser has already been disposed. |
The SelectCertificateParameters object contains information about the authorization request.
To access the list of the certificates from the system storage that match the server criteria you can use the Certificates property.
You can use this handler to display a dialog with the list of the available certificates that allows the user to select the required certificate. Please note that it is not necessary to display a dialog in this handler.
This handler itself is never called on the UI thread directly.
Use the Cancel method to cancel the authorization.
Use the Select(Int32) method to inform the browser to use the client certificate located by the passed index in the certificate list.
Use the Select(Certificate) method to inform the browser to use the specified client certificate.
If an exception occurs inside the handler implementation, the default behavior will be applied - the method Cancel will be used.