ChipReader

Reads a document's chip in one call: opens it, reads the files your app asks for, runs the checks and returns the facts.

The read follows ICAO Doc 9303 Part 11, Appendix J: PACE when the chip offers a suite the reader runs, otherwise BAC, otherwise a plain read; never both in one session. Then EF.COM, EF.SOD, the data groups, chip authentication or active authentication, and the passive-authentication checks against the roots your app supplied. Every check is reported as a ChipCheck; none of them says the document is genuine, and the SDK makes no trust decision.

One reader can run many reads, one at a time per transport. Session keys are wiped when each read ends. The access key is not cleared; your app calls ChipAccessKey.clear when it is done.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Parameters

telemetry

Where step events (ChipReadEvent) go: the sink registered in TelemetrySinkRegistry when the reader is made, or NoOpTelemetrySink when none is.

Constructors

Link copied to clipboard
constructor(telemetry: TelemetrySink = TelemetrySinkRegistry.current)

A reader that sends step events to telemetry.

Functions

Link copied to clipboard
suspend fun read(transport: ApduTransport, options: ChipReadOptions): ChipReadResult

Reads the chip behind transport as options say.

suspend fun read(transport: ApduTransport, options: ChipReadOptions, updates: ChipReadUpdateListener?): ChipReadResult

Reads the chip behind transport as options say, and tells updates where the read is.