getSigningPinRetryCount static method

Future<int> getSigningPinRetryCount()

Implementation

static Future<int> getSigningPinRetryCount() async {
  // SELECT FILE 公的個人認証AP
  var selectFile = await FlutterNfcMynumber.transceive(
      Uint8List.fromList(MynumberCommand.commandSelectFile));
  commandResultCheck(selectFile);

  // SELECT FILE 認証用PIN
  var selectFileAuthPin = await FlutterNfcMynumber.transceive(
      Uint8List.fromList(MynumberCommand.commandSelectFilePinSync));
  commandResultCheck(selectFileAuthPin);

  // retry回数をGET
  var retryCountResult = await FlutterNfcMynumber.transceive(
      Uint8List.fromList(MynumberCommand.commandReadRetryCount));
  commandRetryCountResultCheck(retryCountResult);

  return _getRetryCountFromResult(retryCountResult);
}