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

    Interface DkimPublicKeyLocator

    A service which locates and retrieves DKIM public keys (typically via DNS).

    MimeKit does not implement DNS itself; the client supplies a locator. The shipped implementations are DkimPublicKeyLocatorBase (TXT parsing), the test locator (fixtures), and DohPublicKeyLocator (DNS-over-HTTPS).

    interface DkimPublicKeyLocator {
        locatePublicKey(
            methods: string,
            domain: string,
            selector: string,
        ): Promise<AsymmetricKey>;
    }

    Implemented by

    Index
    • Locate and retrieve the public key for the given domain and selector.

      Parameters

      • methods: string

        A colon-separated list of query methods (default dns/txt).

      • domain: string

        The domain.

      • selector: string

        The selector.

      Returns Promise<AsymmetricKey>

      The public key.