ProximityReader

class ProximityReader(configuration: ProximityReaderConfiguration, keyStore: KeyStore? = null)(source)

An ISO/IEC 18013-5 mdoc reader: a verifier asking for an mdoc in person over BLE. It needs no Wallet. keyStore holds the reader's key, ProximityReaderConfiguration.readerKeyID; null for a reader that doesn't sign.

Constructors

Link copied to clipboard
constructor(configuration: ProximityReaderConfiguration, keyStore: KeyStore? = null)

Functions

Link copied to clipboard
fun start(context: Context, qrCode: String, docType: String, elements: Map<String, List<String>>, timeouts: ProximityTimeouts = ProximityTimeouts()): ProximityReaderSession

Reads the holder's qrCode and starts a session asking for docType's elements (namespace → identifiers): it scans for the holder, or advertises for it, as the holder's QR code offers. It throws ProximityException for a missing permission, and WalletException (invalidInput) for a QR code it can't use.