DataGroup1
internal final class DataGroup1 : DataGroup
Represents Data Group 1 (DG1
) from an ePassport. DG1 contains information about the travel document.
The Data Elements of DG1
are intended to reflect the entire contents of the MRZ whether it
contains actual data or filler characters.
Note
Details on the implementation of the MRZ
are dependent on the type of LDS1 eMRTD (TD1, TD2 or TD3 formats).
Note
DG1
is required by the LDS of the eMRTD.
Note
The MRZ
is duplicated within DG1
from the physical document.
See also
TravelDocument
, TDType
, MRZ
and DataGroup
-
The travel document object.
Declaration
Swift
private(set) var travelDocument: TravelDocument? { get }
-
Initializes a
DataGroup1
instance with ASN.1 encoded data and a data group identifier.Throws
An error if decoding of the data group fails.
Declaration
Swift
internal required init(_ data: ASN1Node, identifier: DGTag) throws
Parameters
data
The ASN.1 encoded data for the data group.
identifier
The identifier of the data group.
-
Decodes the ASN.1 encoded data, extracting and storing the associated travel document data.
Throws
An error if decoding of the travel document fails.
Declaration
Swift
override internal func decode(_ data: ASN1Node) throws
Parameters
data
The ASN.1 encoded data for the data group.