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

    Interface ISecureMimeStore

    The injectable X.509 certificate / private-key store. This is the environment seam: C2b ships an in-memory default, a browser (IndexedDB) store, and a Node (filesystem) store; tests supply a fixture store. Everything is async so a remote or IO-backed store fits without changing the abstraction.

    interface ISecureMimeStore {
        getCertificate(mailbox: MailboxAddress): Promise<X509Certificate | null>;
        getPrivateKey(mailbox: MailboxAddress): Promise<PrivateKeyEntry | null>;
        getTrustedAnchors(): Promise<X509Certificate[]>;
        addCertificate(certificate: X509Certificate): Promise<void>;
        importCertificates(data: Uint8Array): Promise<void>;
    }

    Implemented by

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

      Parameters

      • data: Uint8Array

      Returns Promise<void>