RequestHandlerOnSelectClientCertificate Method |
Version 130.1.90
Called when the browser needs user to select Client Certificate for authentication requests (eg. PKI authentication).
Namespace: CefSharp.HandlerAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax protected virtual bool OnSelectClientCertificate(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
bool isProxy,
string host,
int port,
X509Certificate2Collection certificates,
ISelectClientCertificateCallback callback
)
protected:
virtual bool OnSelectClientCertificate(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
bool isProxy,
String^ host,
int port,
X509Certificate2Collection^ certificates,
ISelectClientCertificateCallback^ callback
)
Parameters
- chromiumWebBrowser IWebBrowser
- The ChromiumWebBrowser control.
- browser IBrowser
- the browser object.
- isProxy Boolean
- indicates whether the host is a proxy server.
- host String
- hostname.
- port Int32
- port number.
- certificates X509Certificate2Collection
- List of Client certificates for selection.
- callback ISelectClientCertificateCallback
- Callback interface used for asynchronous continuation of client certificate selection for
authentication requests.
Return Value
Boolean
Return true to continue the request and call ISelectClientCertificateCallback.Select() with the selected certificate for
authentication. Return false to use the default behavior where the browser selects the first certificate from the list.
See Also