ChipRead

Everything one chip read produced: how access went, the raw files, the parsed views beside them, the per-file problems and the checks.

The raw bytes of every file read are always in files, even when its view could not be made. The views are conveniences on top of them. toString() shows counts only, never content.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Properties

Link copied to clipboard

How the reader got access to the chip.

Link copied to clipboard

The facts: one ChipCheck per check, in a fixed order (passive authentication, then chip authentication, the PACE chip authentication mapping and active authentication). The checks that need the chip (chip authentication, the mapping, active authentication) come from the read's last attempt; passive authentication runs on the phone over every file.

Link copied to clipboard
val dg1: Dg1View?

DG1, the chip's MRZ: its document has ReadMethod.NFC_CHIP. Its dates are read against ChipReadOptions.checkTime; with no check time it is null (the SDK reads no clock), and the raw DG1 is still in files for Dg1View.parse with a time your app picks.

Link copied to clipboard

DG11, additional personal details.

Link copied to clipboard

DG12, additional document details.

Link copied to clipboard

DG13, optional details.

Link copied to clipboard

DG16, persons to notify.

Link copied to clipboard

DG2, the face containers; image bytes untouched.

Link copied to clipboard

DG5, the displayed portrait.

Link copied to clipboard

DG7, the displayed signature or usual mark.

Link copied to clipboard

EF.COM, when read and parsed.

Link copied to clipboard

Files that were asked for and could not be read or parsed: not found, protected, malformed, each with the file it is about. A file missing here and in files was not asked for.

Link copied to clipboard

Every file read, in the order it was read, as the chip sent it.

Link copied to clipboard

What happened to the files of earlier attempts after a lost link.

Link copied to clipboard

EF.SOD, when read and parsed.

Functions

Link copied to clipboard

The eMRTD application's file fileId (for example 0x011D EF.SOD), or null when it was not read.

Link copied to clipboard
fun dataGroup(number: Int): ChipFile?

Data group number (1 to 16) of the eMRTD application, or null when it was not read.

Link copied to clipboard
fun masterFile(fileId: Int): ChipFile?

The master file's file fileId (for example 0x011D EF.CardSecurity), or null when it was not read.

Link copied to clipboard

The outcome of the check of kind, or null when the read has no such check.

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

Counts only: files, file errors and checks.