Edit

Share via


SignedCms Constructors

Definition

Initializes a new instance of the SignedCms class.

Overloads

SignedCms()

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

SignedCms(ContentInfo)

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

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

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)

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

Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs

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.

Applies to

SignedCms(ContentInfo)

Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs

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 ^ contentInfo);
public SignedCms (System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo)

Parameters

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.

Applies to

SignedCms(SubjectIdentifierType)

Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs

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

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.

Applies to

SignedCms(ContentInfo, Boolean)

Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs

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 ^ contentInfo, bool detached);
public SignedCms (System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo, detached As Boolean)

Parameters

contentInfo
ContentInfo

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

detached
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.

Applies to

SignedCms(SubjectIdentifierType, ContentInfo)

Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs
Source:
SignedCms.CtorOverloads.cs

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 ^ contentInfo);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
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, contentInfo As ContentInfo)

Parameters

signerIdentifierType
SubjectIdentifierType

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

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.

Applies to

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

Source:
SignedCms.cs
Source:
SignedCms.cs
Source:
SignedCms.cs
Source:
SignedCms.cs
Source:
SignedCms.cs

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 ^ contentInfo, bool detached);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo, 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, contentInfo As ContentInfo, detached As Boolean)

Parameters

signerIdentifierType
SubjectIdentifierType

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

contentInfo
ContentInfo

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

detached
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