WindowsSecureMimeContextGetCmsRecipient Method

Get the CmsRecipient for the specified mailbox.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected virtual CmsRecipient GetCmsRecipient(
	MailboxAddress mailbox
)

Parameters

mailbox  MailboxAddress
The recipient's mailbox address.

Return Value

CmsRecipient
A CmsRecipient.

Remarks

Constructs a CmsRecipient with the appropriate certificate for the specified mailbox.

If the mailbox is a SecureMailboxAddress, the Fingerprint property will be used instead of the mailbox address.

Exceptions

CertificateNotFoundException A certificate for the specified mailbox could not be found.

See Also