Table of Contents

Method NamesClient

Namespace
MailFathom.Infrastructure.Security.ClientCertificates
Assembly
MailFathom.Infrastructure.dll

NamesClient(IEnumerable<string>)

Reports whether a certificate carrying given DNS names is the client this profile identifies.

public bool NamesClient(IEnumerable<string> presentedDnsNames)

Parameters

presentedDnsNames IEnumerable<string>

The subject alternative DNS names the certificate carries.

Returns

bool

true when at least one expected name is present; otherwise false.

Remarks

DNS names are compared without regard to case, which is what a host name is, and never by suffix: a profile names the client rather than a domain a client happens to sit under.

Exceptions

ArgumentNullException

Thrown when presentedDnsNames is null.