• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Interface IDkimKeyResolver

Resolves DKIM public keys from DNS (RFC 6376 §3.6). Implementations retrieve the TXT record at <selector>._domainkey.<domain> and parse it into a DkimKeyRecord.

Namespace: DRIT.Mail.Rfc.Dkim
Assembly: DRIT.Mail.dll
Syntax
public interface IDkimKeyResolver

Methods

View Source

Resolve(string, string)

Resolves the DKIM key record for the given selector and domain.

Declaration
DkimKeyRecord? Resolve(string selector, string domain)
Parameters
Type Name Description
string selector

The selector (s= tag).

string domain

The signing domain (d= tag).

Returns
Type Description
DkimKeyRecord

The parsed DkimKeyRecord, or null if no key record was found (e.g., the DNS name does not exist).

Exceptions
Type Condition
DkimException

Thrown on a temporary DNS failure (timeout, server error). The verifier treats this as a "temperror".

  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX