C# Class MimeKit.Cryptography.CmsRecipient

An S/MIME recipient.
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.
Mostrar archivo Open project: nachocove/MimeKit Class Usage Examples

Public Methods

Method Description
CmsRecipient ( System.Stream stream, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.

Creates a new CmsRecipient, loading the certificate from the specified stream.

The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.

CmsRecipient ( System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.

The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.

CmsRecipient ( X509Certificate certificate, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.

The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.

CmsRecipient ( string fileName, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.

Creates a new CmsRecipient, loading the certificate from the specified file.

The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.

Method Details

CmsRecipient() public method

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.

Creates a new CmsRecipient, loading the certificate from the specified stream.

The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.

/// is null. /// /// An I/O error occurred. ///
public CmsRecipient ( System.Stream stream, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System
stream System.Stream The stream containing the recipient's certificate.
recipientIdentifierType SubjectIdentifierType The recipient identifier type.
return System

CmsRecipient() public method

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.
The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.
/// is null. ///
public CmsRecipient ( System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The recipient's certificate.
recipientIdentifierType SubjectIdentifierType The recipient identifier type.
return System

CmsRecipient() public method

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.
The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.
/// is null. ///
public CmsRecipient ( X509Certificate certificate, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System
certificate Org.BouncyCastle.X509.X509Certificate The recipient's certificate.
recipientIdentifierType SubjectIdentifierType The recipient identifier type.
return System

CmsRecipient() public method

Initializes a new instance of the MimeKit.Cryptography.CmsRecipient class.

Creates a new CmsRecipient, loading the certificate from the specified file.

The initial value of the EncryptionAlgorithms property will be set to the Triple-DES encryption algorithm, which should be safe to assume for all modern S/MIME v3.x client implementations.

/// is null. /// /// is a zero-length string, contains only white space, or /// contains one or more invalid characters as defined by /// . /// /// is an invalid file path. /// /// The specified file path could not be found. /// /// The user does not have access to read the specified file. /// /// An I/O error occurred. ///
public CmsRecipient ( string fileName, SubjectIdentifierType recipientIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber ) : System
fileName string The file containing the recipient's certificate.
recipientIdentifierType SubjectIdentifierType The recipient identifier type.
return System