onReceivedClientCertRequest property
Future<ClientCertResponse?> Function(T controller, ClientCertChallenge challenge)?
onReceivedClientCertRequest
final
Notify the host application to handle an SSL client certificate request. Webview stores the response in memory (for the life of the application) if ClientCertResponseAction.PROCEED or ClientCertResponseAction.CANCEL is called and does not call onReceivedClientCertRequest again for the same host and port pair. Note that, multiple layers in chromium network stack might be caching the responses.
challenge
contains data about host, port, protocol, realm, etc. as specified in the ClientCertChallenge.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.onReceivedClientCertRequest)
- iOS (Official API - WKNavigationDelegate.webView)
- MacOS (Official API - WKNavigationDelegate.webView)
Implementation
final Future<ClientCertResponse?> Function(
T controller, ClientCertChallenge challenge)? onReceivedClientCertRequest;