mimekit-ts - v1.0.0
    Preparing search index...

    Class SecureMimeDigitalSignature

    An S/MIME digital signature.

    Implements

    Index
    signerInfo: SignerInformation

    The CMS signer info.

    encryptionAlgorithms: EncryptionAlgorithm[]

    The encryption algorithms (in preferential order) the signer's client supports.

    signerCertificate: IDigitalCertificate | null

    The certificate used by the signer.

    digestAlgorithm: DigestAlgorithm

    The digest algorithm used for the signature.

    creationDate: Date

    The creation date of the digital signature (UTC).

    chain: unknown = null

    The certificate chain. If building the chain failed, this is null and chainException is set.

    chainException: Error | null = null

    The error that occurred, if any, while building the certificate chain.

    • Verify the digital signature.

      Parameters

      • verifySignatureOnly: boolean = false

        When true, only the signature itself is verified; otherwise both the signature and the certificate chain are validated.

      Returns Promise<boolean>

      An error verifying the signature occurred.