SslAuthError class
Represents an SSL error with the associated certificate.
The host application must call cancel or, contrary to secure web communication standards, proceed to provide the web view's response to the error. proceed should generally only be used in test environments, as using it in production can expose users to security and privacy risks.
Platform-Specific Features
This class contains an underlying implementation provided by the current platform. Once a platform implementation is imported, the examples below can be followed to use features provided by a platform's implementation.
Below is an example of accessing the platform-specific implementation for iOS and Android:
final SslAuthError error = ...;
if (WebViewPlatform.instance is WebKitWebViewPlatform) {
final WebKitSslAuthError webKitError =
error.platform as WebKitSslAuthError;
} else if (WebViewPlatform.instance is AndroidWebViewPlatform) {
final AndroidSslAuthError androidError =
error.platform as AndroidSslAuthError;
}
Properties
- certificate → X509Certificate?
-
The certificate associated with this error.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- platform → PlatformSslAuthError
-
An implementation of
PlatformSslAuthError
for the current platform.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → Future< void> - Instructs the WebView that encountered the SSL certificate error to terminate communication with the server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
proceed(
) → Future< void> - Instructs the WebView that encountered the SSL certificate error to ignore the error and continue communicating with the server.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited