Windows Secure Mime ContextGet Cms Signer Method
Get the CmsSigner for the specified mailbox.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
A CmsSigner.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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
CmsSignerA CmsSigner.
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.
Exceptions
| CertificateNotFoundException | A certificate for the specified mailbox could not be found. |