onReceivedServerTrustAuthRequest method

Future<ServerTrustAuthResponse?>? onReceivedServerTrustAuthRequest(
  1. URLAuthenticationChallenge challenge
)
inherited

Event fired when the WebView need to perform server trust authentication (certificate validation). The host application must return either ServerTrustAuthResponse instance with ServerTrustAuthResponseAction.CANCEL or ServerTrustAuthResponseAction.PROCEED.

challenge contains data about host, port, protocol, realm, etc. as specified in the ServerTrustChallenge.

Official Android API: https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedSslError(android.webkit.WebView,%20android.webkit.SslErrorHandler,%20android.net.http.SslError)

Official iOS API: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455638-webview

Implementation

Future<ServerTrustAuthResponse?>? onReceivedServerTrustAuthRequest(
    URLAuthenticationChallenge challenge) {
  return null;
}