Table of Contents

Method Of

Namespace
MailFathom.Domain.Emails.Authentication
Assembly
MailFathom.Domain.dll

Of(IEnumerable<string>)

Derives the revision of a policy from the statements it is made of.

public static SenderTrustPolicyRevision Of(IEnumerable<string> statements)

Parameters

statements IEnumerable<string>

Every statement the policy verifies by, each already in its comparison form.

Returns

SenderTrustPolicyRevision

The revision, which is None when the policy verifies nothing.

Remarks

The statements are sorted and joined with a separator none of them may contain, so the revision follows what a policy says rather than the order an operator happened to write it in — reordering a list is not a change to it, and a deployment that reordered one must not have every later verdict read as reached under a different policy. A policy with nothing to say verifies nothing and is deliberately indistinguishable from no policy at all.

Exceptions

ArgumentNullException

Thrown when statements is null.