DataGroup11
internal final class DataGroup11 : DataGroup
Represents Data Group 11 (DG11
) from an ePassport that contains personal details of the passport holder.
DG11
is used for additional details about the document holder.
Note
Data elements within this group are all optional.
See also
-
The personal details extracted from the data group.
Declaration
Swift
private(set) var personalDetails: PersonalDetails? { get }
-
Initializes a
DataGroup11
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 personal details of the passport holder.
Throws
An error if decoding of personal details fails.
Declaration
Swift
override internal func decode(_ data: ASN1Node) throws
Parameters
data
The ASN.1 encoded data for the data group.