isConnectionSecure method
Future<bool>
isConnectionSecure({
- required String serverUrl,
- required SHA sha,
- int timeout = 60,
- required List<
String> allowedSHAFingerprints,
override
Implementation
@override
Future<bool> isConnectionSecure({
required String serverUrl,
required SHA sha,
int timeout = 60,
required List<String> allowedSHAFingerprints,
}) async {
try {
await checkIsConnectionSecure(
serverUrl: serverUrl,
sha: sha,
allowedSHAFingerprints: allowedSHAFingerprints,
timeout: timeout,
);
return true;
} on FeatureNetworkException catch (_) {
return false;
} catch (_) {
return false;
}
}