Click or drag to resize
MimeKit

WindowsSecureMimeContextGetCmsSigner Method

Get the CmsSigner for the specified mailbox.

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

Parameters

mailbox  MailboxAddress
The signer's mailbox address.
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