DataGroup12

internal final class DataGroup12 : DataGroup

Represents Data Group 12 (DG12) from an ePassport and it contains document details of the passport.

DG12 is used for additional information about the document.

Note

Data elements within this group are all optional.

See also

DocumentDetails and DataGroup

  • The document details extracted from the data group.

    Declaration

    Swift

    private(set) var documentDetails: DocumentDetails? { get }
  • Initializes a DataGroup12 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 document details of the passport holder.

    Throws

    An error if decoding of document details fails.

    Declaration

    Swift

    override internal func decode(_ data: ASN1Node) throws

    Parameters

    data

    The ASN.1 encoded data for the data group.