Class McpClientCertificateAuthenticationResult
- Assembly
- MailFathom.Infrastructure.dll
The outcome of judging the certificate a TLS connection carried against the configured trust profiles.
public sealed record McpClientCertificateAuthenticationResult : IEquatable<McpClientCertificateAuthenticationResult>
- Inheritance
-
McpClientCertificateAuthenticationResult
- Implements
- Inherited Members
Remarks
Two questions are answered rather than one, and they are independent. Succeeded says whether the request is served, and MatchedProfileName says which client application was identified — which is nobody when a served request presented no certificate and every profile was content without one. Reading the second as the answer to the first would report an unidentified client as a refused one.
Properties
- AcceptedWithoutCertificate
Gets the result of a request no profile required a certificate of, which identifies no client application.
- MatchedProfileName
Gets the name of the profile whose client the certificate identified, or null when no certificate identified one.
- Succeeded
Gets whether the request is served.
Methods
- AcceptedByProfile(string)
Creates a successful result naming the profile the certificate matched.
- Rejected(McpClientCertificateRejection)
Creates a refused result.