ChipKeyCheckDigitMismatch

Input error: in the MRZ access key, the check digit of one or more fields does not match its field, so the reader sent nothing to the chip.

The chip derives its key from the fields together with their check digits (ICAO Doc 9303 Part 11, section 4.3.2), so a value read or typed with a mistake would cost the chip an access attempt. The read stops before any command instead. An app that reads a document printed with a wrong check digit can allow the mismatch with the read option allowCheckDigitMismatch.

This is a finding about the key the app gave, not about the document.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Constructors

Link copied to clipboard
constructor(fields: Set<MrzField>)

Properties

Link copied to clipboard
open override val code: String

A stable name of this error: see ChipError.code.

Link copied to clipboard
open override val description: String

English text for logs: the names of the fields, never their values.

Link copied to clipboard

The fields whose check digit does not match: MrzField.DOCUMENT_NUMBER, MrzField.DATE_OF_BIRTH or MrzField.DATE_OF_EXPIRY. Never their values.

Link copied to clipboard
open val statusWord: Int?

The status word the chip answered with, when this error carries one (for example 0x6300 for a refused key), otherwise null. The same value as the statusWord of the subtypes that have one, so an app reads it without a cast.

Functions

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

ChipKeyCheckDigitMismatch: followed by description.