SOD

internal final class SOD : DataGroup

SOD (Security Object Document) is a class representing the Security Object data group within an eMRTD. It contains information related to digital signatures and security attributes.

  • Tip: Retrieving data group hashes and perform Passive Autentication is possible by decoding SOD.

  • Declaration

    Swift

    private(set) var pkcs7: PKCS7! { get }
  • Declaration

    Swift

    private(set) var signedData: SignedData! { get }
  • An array of X.509 certificates associated with the Security Object Document.

    Declaration

    Swift

    internal var certs: [X509Certificate] { get }
  • Initialize a SOD instance with ASN.1 data.

    Throws

    An error if there are issues with the provided data or during initialization.

    Declaration

    Swift

    internal required init(_ data: ASN1Node, identifier: DGTag) throws

    Parameters

    data

    The ASN.1 data representing the Security Object Document.

  • Decode the ASN.1 data to extract the PKCS7Message and SignedData.

    Throws

    An error if there are issues with the provided data or during decoding.

    Declaration

    Swift

    override internal func decode(_ data: ASN1Node) throws

    Parameters

    data

    The ASN.1 data representing the Security Object Document content.