DefaultRequestHandler.OnSelectClientCertificate Method |
Version 67.0.0
Called when the browser needs user to select Client Certificate for authentication requests (eg. PKI authentication).
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 67.0.0.0 (67.0.0.0)
Syntaxpublic virtual bool OnSelectClientCertificate(
IWebBrowser browserControl,
IBrowser browser,
bool isProxy,
string host,
int port,
X509Certificate2Collection certificates,
ISelectClientCertificateCallback callback
)
public:
virtual bool OnSelectClientCertificate(
IWebBrowser^ browserControl,
IBrowser^ browser,
bool isProxy,
String^ host,
int port,
X509Certificate2Collection^ certificates,
ISelectClientCertificateCallback^ callback
)
Parameters
- browserControl
- Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharp.IBrowser
the browser object - isProxy
- Type: System.Boolean
indicates whether the host is a proxy server - host
- Type: System.String
hostname - port
- Type: System.Int32
port number - certificates
- Type: System.Security.Cryptography.X509Certificates.X509Certificate2Collection
List of Client certificates for selection - callback
- Type: CefSharp.ISelectClientCertificateCallback
Callback interface used for asynchronous continuation of client certificate selection for authentication requests.
Return Value
Type:
BooleanReturn 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.
Implements
IRequestHandler.OnSelectClientCertificate(IWebBrowser, IBrowser, Boolean, String, Int32, X509Certificate2Collection, ISelectClientCertificateCallback)
See Also