Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextGetCmsSigner Method

Get the CmsSigner for the specified mailbox.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
protected abstract CmsSigner GetCmsSigner(
	MailboxAddress mailbox,
	DigestAlgorithm digestAlgo
)

Parameters

mailbox  MailboxAddress
The mailbox.
digestAlgo  DigestAlgorithm
The preferred digest algorithm.

Return Value

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

Constructs a CmsSigner with the appropriate signing certificate for the specified mailbox.

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

See Also