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 SourceResolve(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". |