Method FindConfigurationErrors
- Namespace
- MailFathom.Infrastructure.Certificates
- Assembly
- MailFathom.Infrastructure.dll
FindConfigurationErrors(string)
Finds everything an operator must fix before this material can be loaded.
public IReadOnlyList<string> FindConfigurationErrors(string configurationPath)
Parameters
configurationPathstringThe configuration path of this block, which prefixes every reported error.
Returns
- IReadOnlyList<string>
One message per faulty setting, empty when the block names material that could be loaded.
Remarks
Only the shape is decided here: which of the two provisioning kinds the block names, and whether it names one of them completely. Whether the referenced material resolves, parses, carries a matching private key, is currently valid, and covers the domain is TlsServerCertificateLoader's question, answered against real material before any listener is opened.
The rule lives with the type it constrains rather than with either endpoint that binds it, because it is a property of the material contract: every listener MailFathom terminates TLS on provisions its identity the same way, and a second copy of these four rules would be a second place for them to drift.
Exceptions
- ArgumentNullException
Thrown when
configurationPathis null.