Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextGetCmsRecipient Method

Get the CmsRecipient for the specified mailbox.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
protected abstract CmsRecipient GetCmsRecipient(
	MailboxAddress mailbox
)

Parameters

mailbox  MailboxAddress
The mailbox.

Return Value

CmsRecipient
A CmsRecipient.
Exceptions
ExceptionCondition
CertificateNotFoundException A certificate for the specified mailbox could not be found.
Remarks

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

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

See Also