readContainerFromExternalStorage method
Получить сертификат с приватным ключом из внешнего контейнера
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;
}