Dg12View

EF.DG12: additional document details (ICAO Doc 9303 Part 10, section 4.7.12).

Text fields are read as UTF-8 and left as they are. The date of issue and the personalization time are read from 8 or 14 ASCII digits, or from packed BCD (4 or 7 bytes), as Part 10 recommends; when a value is neither, the date is null and the raw bytes are still in elements. The images of the document front and rear are raw bytes only.

toString() never shows file content.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Types

Link copied to clipboard
object Companion

Reads EF.DG12.

Properties

Link copied to clipboard

Date of issue (5F26), or null when absent or not a date.

Link copied to clipboard

All data objects of the file, in file order, with their raw values.

Link copied to clipboard

Endorsements and observations (5F1B), or null.

Link copied to clipboard

Issuing authority (5F19), or null.

Link copied to clipboard

Names of other persons (5F1A), in file order, from the content-specific template (A0) or directly in the file.

Link copied to clipboard

Serial number of the personalization system (5F56), or null.

Link copied to clipboard

Date and time of personalization (5F55), or null when absent or not a date and time.

Link copied to clipboard

The tags in the chip's tag list (5C), in list order, or empty when the chip has none.

Link copied to clipboard

Tax or exit requirements (5F1C), or null.

Functions

Link copied to clipboard

The first top-level data object with tag, or null.

Link copied to clipboard
fun raw(): ByteArray

A copy of the whole file as read from the chip.

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

The file's size; never its content.