DataGroup7

internal final class DataGroup7 : DataGroup

Represents Data Group 7 (DG7) from an ePassport. DG7 contains information about displayed signature.

Note

DG7 is an optional Data Group and it may be not present within the eMRTD.

See also

DataGroup

  • The binary data of the displayed signature.

    Declaration

    Swift

    private(set) var displayedSignatureData: [UInt8]? { get }
  • The displayed signature image generated from the binary data.

    Declaration

    Swift

    internal var displayedSignatureImage: UIImage? { get }
  • Initializes a DataGroup7 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 binary displayed signature data.

    Throws

    An error if decoding of the displayed signature data fails.

    Declaration

    Swift

    override internal func decode(_ data: ASN1Node) throws

    Parameters

    data

    The ASN.1 encoded data for the data group.