fromDeviceEngagement

fun fromDeviceEngagement(encodedDeviceRetrievalMethod: ByteArray): MdocConnectionMethod?

Constructs a new MdocConnectionMethod from DeviceRetrievalMethod CBOR.

See ISO/IEC 18013-5:2021 section 8.2.1.1 Device engagement structure for where DeviceRetrievalMethod CBOR is defined.

This is the reverse operation of .toDeviceEngagement.

Return

A MdocConnectionMethod-derived instance or null if the method isn't supported.

Parameters

encodedDeviceRetrievalMethod

the bytes of DeviceRetrievalMethod CBOR.

Throws

if the given CBOR is malformed.