isConnectionSecure method

  1. @override
Future<bool> isConnectionSecure({
  1. required String serverUrl,
  2. required SHA sha,
  3. int timeout = 60,
  4. 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;
  }
}