Click or drag to resize
MimeKit

CmsRecipient(X509Certificate, SubjectIdentifierType) Constructor

Initialize a new instance of the CmsRecipient class.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public CmsRecipient(
	X509Certificate certificate,
	SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber
)

Parameters

certificate  X509Certificate
The recipient's certificate.
recipientIdentifierType  SubjectIdentifierType  (Optional)
The recipient identifier type.
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
Remarks

Creates a new CmsRecipient based on the provided certificate.

If the X.509 certificate contains an S/MIME capability extension, the initial value of the EncryptionAlgorithms property will be set to whatever encryption algorithms are defined by the S/MIME capability extension, otherwise int will be initialized to a list containing only the Triple-Des encryption algorithm which should be safe to assume for all modern S/MIME v3.x client implementations.

See Also