readContainerFromExternalStorage method

  1. @override
Future<Certificate> readContainerFromExternalStorage({
  1. required String storageName,
  2. required String password,
  3. String? newPassword,
})
override

Получить сертификат с приватным ключом из внешнего контейнера

Implementation

@override
Future<Certificate> readContainerFromExternalStorage({
  required String storageName,
  required String password,
  String? newPassword,
}) async {
  String response = await methodChannel.invokeMethod(
    "readFromExternalStorage",
    {
      "storageName": storageName,
      "password": password,
    },
  );
  Map<String, dynamic> map = json.decode(response) as Map<String, dynamic>;
  final certificate = Certificate.fromMap(map["certificate"]);
  return certificate;
}