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

    Class SecureMimeContextAbstract

    An S/MIME cryptography context. The portable orchestration lives here; the crypto primitives and certificate/key storage are abstract and implemented by the concrete pkijs-backed context in wave C2b.

    Hierarchy (View Summary)

    Index
    encryptionAlgorithmRank: EncryptionAlgorithm[]

    The encryption algorithms in ranked (strongest-first) order.

    store: ISecureMimeStore | null

    The injectable certificate/key store (set by the concrete C2b context). null on contexts that resolve everything from an explicit CmsSigner / CmsRecipient and never do mailbox lookups.

    prepareBeforeSigning: boolean = true

    Whether entities should be canonically prepared (armored "From " lines, trailing whitespace trimmed) before signing (C#: PrepareBeforeSigning, default true).

    • Whether the specified protocol is supported by this context.

      Parameters

      • protocol: string

      Returns boolean

    • Decrypt enveloped-data, writing the decrypted MIME stream to output.

      Parameters

      • data: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Import the certificates (and CRLs) contained in the DER/PKCS#7 stream.

      Parameters

      • data: Uint8Array

      Returns Promise<void>