DefaultSecureMimeContextGetCertificate Method

Gets the X.509 certificate matching the specified selector.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected override X509Certificate? GetCertificate(
	ISelector<X509Certificate> selector
)

Parameters

selector  ISelectorX509Certificate
The search criteria for the certificate.

Return Value

X509Certificate
The certificate on success; otherwise .

Remarks

Gets the first certificate that matches the specified selector.

See Also