Click or drag to resize

IBrowserSelectCertificateHandler Property

Gets or sets a handler that is used when the web server requires authorization via client certificate.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.11.0
Syntax
C#
IHandler<SelectCertificateParameters, SelectCertificateResponse> SelectCertificateHandler { get; set; }

Property Value

Type: IHandlerSelectCertificateParameters, SelectCertificateResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
Remarks

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.

See Also