CmsRecipient Class

Definition

The CmsRecipient class defines the recipient of a CMS/PKCS #7 message.

public ref class CmsRecipient sealed
public sealed class CmsRecipient
type CmsRecipient = class
Public NotInheritable Class CmsRecipient
Inheritance
CmsRecipient

Constructors

CmsRecipient(SubjectIdentifierType, X509Certificate2)

Initializes a new instance of the CmsRecipient class with a specified certificate and recipient identifier type, using the default encryption mode for the public key algorithm.

CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

Initializes a new instance of the CmsRecipient class with a specified RSA certificate, RSA encryption padding, and subject identifier.

CmsRecipient(X509Certificate2)

Initializes a new instance of the CmsRecipient class with a specified certificate, using the default encryption mode for the public key algorithm and an IssuerAndSerialNumber subject identifier.

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

Initializes a new instance of the CmsRecipient class with a specified RSA certificate and RSA encryption padding, using an IssuerAndSerialNumber subject identifier.

Properties

Certificate

Gets the certificate to use when encrypting for this recipient.

RecipientIdentifierType

Gets the scheme to use for identifying which recipient certificate was used.

RSAEncryptionPadding

Gets the RSA encryption padding to use when encrypting for this recipient.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(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)

Applies to