SignedCms SignedCms SignedCms SignedCms Constructors

Definition

Overloads

SignedCms() SignedCms() SignedCms()

The SignedCms() constructor creates an instance of the SignedCms class.

SignedCms(SubjectIdentifierType) SignedCms(SubjectIdentifierType) SignedCms(SubjectIdentifierType) SignedCms(SubjectIdentifierType)

The SignedCms(SubjectIdentifierType) constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers.

SignedCms(ContentInfo) SignedCms(ContentInfo) SignedCms(ContentInfo) SignedCms(ContentInfo)

The SignedCms(ContentInfo) constructor creates an instance of the SignedCms class by using the specified content information as the inner content.

SignedCms(ContentInfo, Boolean) SignedCms(ContentInfo, Boolean) SignedCms(ContentInfo, Boolean) SignedCms(ContentInfo, Boolean)

The SignedCms(ContentInfo, Boolean) constructor creates an instance of the SignedCms class by using the specified content information as the inner content and by using the detached state.

SignedCms(SubjectIdentifierType, ContentInfo) SignedCms(SubjectIdentifierType, ContentInfo) SignedCms(SubjectIdentifierType, ContentInfo) SignedCms(SubjectIdentifierType, ContentInfo)

The SignedCms(SubjectIdentifierType, ContentInfo) constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers and content information as the inner content.

SignedCms(SubjectIdentifierType, ContentInfo, Boolean) SignedCms(SubjectIdentifierType, ContentInfo, Boolean) SignedCms(SubjectIdentifierType, ContentInfo, Boolean) SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

The SignedCms(SubjectIdentifierType, ContentInfo, Boolean) constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers, the content information as the inner content, and by using the detached state.

SignedCms() SignedCms() SignedCms()

The SignedCms() constructor creates an instance of the SignedCms class.

public:
 SignedCms();
public SignedCms ();
Public Sub New ()

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

Remarks

The SignedCms class has the following default property values.

Property Default value
ContentInfo 1.2.840.113549.1.7.1 (data)Length: zero
Detached Detached state: false The content that is signed is included in the CMS/PKCS #7 message along with the signature information.

The default SubjectIdentifierType for signers is SubjectIdentifierType.IssuerAndSerialNumber.

If the detached state is false (the default), the signed content is included in the CMS/PKCS #7 message along with the signature information. If the detached state is true, clients that cannot decode S/MIME messages can still see the content of the message if it is sent separately. This may be useful in an archiving application that archives message content whether the message sender can be verified for authenticity.

SignedCms(SubjectIdentifierType) SignedCms(SubjectIdentifierType) SignedCms(SubjectIdentifierType) SignedCms(SubjectIdentifierType)

The SignedCms(SubjectIdentifierType) constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers.

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType)

Parameters

signerIdentifierType
SubjectIdentifierType SubjectIdentifierType SubjectIdentifierType SubjectIdentifierType

A SubjectIdentifierType member that specifies the default subject identifier type for signers.

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

Remarks

For the default property values used with this constructor, see SignedCms().

If the detached state is false (the default), the content that is signed is included in the CMS/PKCS #7 message along with the signature information. If the detached state is true, clients that cannot decode S/MIME messages can still see the content of the message if it is sent separately. This might be useful in an archiving application that archives message content whether the message sender can be verified for authenticity.

SignedCms(ContentInfo) SignedCms(ContentInfo) SignedCms(ContentInfo) SignedCms(ContentInfo)

The SignedCms(ContentInfo) constructor creates an instance of the SignedCms class by using the specified content information as the inner content.

public:
 SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ content);
public SignedCms (System.Security.Cryptography.Pkcs.ContentInfo content);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (content As ContentInfo)

Parameters

contentInfo
ContentInfo ContentInfo ContentInfo ContentInfo

A ContentInfo object that specifies the content information as the inner content of the SignedCms message.

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

Remarks

For the default property values used with this constructor, see SignedCms().

If the detached state is false (the default), the content that is signed is included in the CMS/PKCS #7 message along with the signature information. If the detached state is true, clients that cannot decode S/MIME messages can still see the content of the message if it is sent separately. This might be useful in an archiving application that archives message content whether the message sender can be verified for authenticity.

SignedCms(ContentInfo, Boolean) SignedCms(ContentInfo, Boolean) SignedCms(ContentInfo, Boolean) SignedCms(ContentInfo, Boolean)

The SignedCms(ContentInfo, Boolean) constructor creates an instance of the SignedCms class by using the specified content information as the inner content and by using the detached state.

public:
 SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ content, bool detached);
public SignedCms (System.Security.Cryptography.Pkcs.ContentInfo content, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (content As ContentInfo, detached As Boolean)

Parameters

contentInfo
ContentInfo ContentInfo ContentInfo ContentInfo

A ContentInfo object that specifies the content information as the inner content of the SignedCms message.

detached
Boolean Boolean Boolean Boolean

A Boolean value that specifies whether the SignedCms object is for a detached signature. If detached is true, the signature is detached. If detached is false, the signature is not detached.

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

Remarks

For the default property values used with this constructor, see SignedCms().

If the detached state is false (the default), the content that is signed is included in the CMS/PKCS #7 message along with the signature information. If the detached state is true, clients that cannot decode S/MIME messages can still see the content of the message if it is sent separately. This might be useful in an archiving application that archives message content whether the message sender can be verified for authenticity.

SignedCms(SubjectIdentifierType, ContentInfo) SignedCms(SubjectIdentifierType, ContentInfo) SignedCms(SubjectIdentifierType, ContentInfo) SignedCms(SubjectIdentifierType, ContentInfo)

The SignedCms(SubjectIdentifierType, ContentInfo) constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers and content information as the inner content.

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ content);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo content);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, content As ContentInfo)

Parameters

signerIdentifierType
SubjectIdentifierType SubjectIdentifierType SubjectIdentifierType SubjectIdentifierType

A SubjectIdentifierType member that specifies the default subject identifier type for signers.

contentInfo
ContentInfo ContentInfo ContentInfo ContentInfo

A ContentInfo object that specifies the content information as the inner content of the SignedCms message.

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

Remarks

For the default property values used with this constructor, see SignedCms().

If the detached state is false (the default), the content that is signed is included in the CMS/PKCS #7 message along with the signature information. If the detached state is true, clients that cannot decode S/MIME messages can still see the content of the message if it is sent separately. This might be useful in an archiving application that archives message content whether the message sender can be verified for authenticity.

SignedCms(SubjectIdentifierType, ContentInfo, Boolean) SignedCms(SubjectIdentifierType, ContentInfo, Boolean) SignedCms(SubjectIdentifierType, ContentInfo, Boolean) SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

The SignedCms(SubjectIdentifierType, ContentInfo, Boolean) constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers, the content information as the inner content, and by using the detached state.

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ content, bool detached);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo content, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, content As ContentInfo, detached As Boolean)

Parameters

signerIdentifierType
SubjectIdentifierType SubjectIdentifierType SubjectIdentifierType SubjectIdentifierType

A SubjectIdentifierType member that specifies the default subject identifier type for signers.

contentInfo
ContentInfo ContentInfo ContentInfo ContentInfo

A ContentInfo object that specifies the content information as the inner content of the SignedCms message.

detached
Boolean Boolean Boolean Boolean

A Boolean value that specifies whether the SignedCms object is for a detached signature. If detached is true, the signature is detached. If detached is false, the signature is not detached.

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

Remarks

If the detached state is false (the default), the content that is signed is included in the CMS/PKCS #7 message along with the signature information. If the detached state is true, clients that cannot decode S/MIME messages can still see the content of the message if it is sent separately. This may be useful in an archiving application that archives message content whether or not the message sender can be verified for authenticity.

Applies to