fromDataItem
Parses CBOR compliant with the CDDL for ReaderEngagement according to ISO/IEC 18013-5.
Return
the parsed ReaderEngagement.
Parameters
dataItem
the ReaderEngagement CBOR.
Parses CBOR compliant with the CDDL for ReaderEngagement according to ISO/IEC 18013-5, optionally enforcing context-specific constraints for engagementType.
Return
the parsed ReaderEngagement.
Parameters
dataItem
the ReaderEngagement CBOR.
engagementType
optional engagement context (MdocEngagementType.READER_QR or MdocEngagementType.CCE_REQUEST) to validate against.