MdocReaderNfcHandoverOptions

data class MdocReaderNfcHandoverOptions(val engagementType: MdocReaderNfcEngagementType = MdocReaderNfcEngagementType.NFC_CCE_AND_NFC_CONNECTION_HANDOVER, val cceEReaderKeyCurve: EcCurve = EcCurve.P256, val cceEReaderKey: EcPrivateKey? = null, val readerEngagement: ReaderEngagement? = null, val random: Random = Crypto.secureRandom)

Options for when performing handover as a mdoc reader.

Constructors

Link copied to clipboard
constructor(engagementType: MdocReaderNfcEngagementType = MdocReaderNfcEngagementType.NFC_CCE_AND_NFC_CONNECTION_HANDOVER, cceEReaderKeyCurve: EcCurve = EcCurve.P256, cceEReaderKey: EcPrivateKey? = null, readerEngagement: ReaderEngagement? = null, random: Random = Crypto.secureRandom)

Properties

Link copied to clipboard

optional explicit ephemeral reader private key to include in ReaderEngagement during CCE handover.

Link copied to clipboard

the curve to use when generating the ephemeral reader key for CCE if cceEReaderKey is null.

Link copied to clipboard

which NFC engagement technologies to attempt during handover.

Link copied to clipboard

the Random instance used when generating random handover values (such as the 16-bit random number in the NFC Negotiated Handover CollisionResolutionRecord), defaulting to Crypto.secureRandom.

Link copied to clipboard

optional ReaderEngagement to send in NFC CCE (CCEHandoverRequest, ISO/IEC 18013-5 Second Edition clause 9.5.4) and/or as an "mdocreader" auxiliary data record in NFC Negotiated Handover HandoverRequest messages (ISO/IEC 18013-5 Second Edition clause 9.4). Its ReaderEngagement.connectionMethods (DeviceRetrievalMethods field) must be empty; for NFC CCE, any secondary connection methods offered in negotiatedHandoverConnectionMethods are merged in automatically if applicable. If ReaderEngagement.eReaderKey is non-null and NFC CCE is enabled, cceEReaderKey must also be provided with a matching public key.