COM
internal final class COM : DataGroup
A class representing the Common (COM
) data group in an electronic passport.
It contains LDS (Logical Data Structure) version information, Unicode version information and a list of the Data Groups that are present for the application.
Note
The LDS1 eMRTD application must have only one file EF.COM that contains the common information for the application.
See also
-
The LDS version.
Declaration
Swift
private(set) var ldsVersion: String? { get }
-
The Unicode version.
Declaration
Swift
private(set) var unicodeVersion: String? { get }
-
An array of available data groups in the passport.
Declaration
Swift
private(set) var availableDataGroups: [DGTag] { get }
-
Initializes a
COM
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 COM data group.
identifier
The identifier of the data group.
-
Decodes the ASN.1 encoded data, extracting and storing information from the
COM
data group.Throws
An error if decoding of the data group fails.
Declaration
Swift
override internal func decode(_ data: ASN1Node) throws
Parameters
data
The ASN.1 encoded data for the COM data group.