MdocNfcV2EngagementHelper
Helper used for NFC engagement on the mdoc side.
This implements NFC engagement v2 according to ISO/IEC 18013 Second Edition
APDUs received from the NFC tag reader should be passed to the processApdu method.
The apduCommandMaxSize parameter is used to tell the mdoc reader that it needs to send its commands in APDUs no larger than this size and this value must be smaller or equal to 65536, the maximum size of an Extended APDU. Since this class is usually not used in an environment where a 64 KiB buffer is a showstopper we default to the maximum size.
Parameters
EDeviceKey as per ISO/IEC 18013-5:2021.
the function to call when handover is complete.
the function to call when a data message has been received over NFC.
the function to call if an error occurs.
a function to choose one of the connection methods from the mdoc reader. This always contain a MdocConnectionMethodNfcV2 instance and contains others if the mdoc reader is capable of data transfer over e.g. BLE or Wifi Aware. If the mdoc only supports data transfer over NFC, it should return the element for MdocConnectionMethodNfcV2.
the maximum length of the command data field.