CmsRecipient Class

An S/MIME recipient.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public class CmsRecipient
Inheritance
Object    CmsRecipient

Remarks

If the X.509 certificates are known for each of the recipients, you may wish to use a CmsRecipient as opposed to having the CryptographyContext do its own certificate lookups for each MailboxAddress.

Constructors

CmsRecipient(Stream, SubjectIdentifierType) Initialize a new instance of the CmsRecipient class.
CmsRecipient(String, SubjectIdentifierType) Initialize a new instance of the CmsRecipient class.
CmsRecipient(X509Certificate, SubjectIdentifierType) Initialize a new instance of the CmsRecipient class.
CmsRecipient(X509Certificate2, SubjectIdentifierType) Initialize a new instance of the CmsRecipient class.

Properties

Certificate Get the recipient's certificate.
EncryptionAlgorithms Get or set the known S/MIME encryption capabilities of the recipient's mail client, in their preferred order.
RecipientIdentifierType Get the recipient identifier type.
RsaEncryptionPadding Get or set the RSA key encryption padding.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

See Also