MdocConnectionMethodNfcV2

data class MdocConnectionMethodNfcV2(val apduResponseMaxSize: Long = 65536) : MdocConnectionMethod

Connection method for NFCv2.

The apduResponseMaxSize parameter is used to tell the mdoc that it needs to send its responses 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.

Constructors

Link copied to clipboard
constructor(apduResponseMaxSize: Long = 65536)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the maximum length of the response data field.

Functions

Link copied to clipboard
open override fun toDeviceEngagement(): ByteArray

Generates DeviceRetrievalMethod CBOR for the given MdocConnectionMethod.

Link copied to clipboard
open override fun toNdefRecord(auxiliaryReferences: List<String>, role: MdocRole, skipUuids: Boolean): Pair<NdefRecord, NdefRecord>?

Creates a NDEF Connection Handover Carrier Reference record and Auxiliary Data Reference records.

Link copied to clipboard
open override fun toString(): String