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

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

.NET 9 (package-provided) ja muud versioonid
Toode Versioonid
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

.NET 9 (package-provided) ja muud versioonid
Toode Versioonid
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

.NET 9 (package-provided) ja muud versioonid
Toode Versioonid
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

.NET 9 (package-provided) ja muud versioonid
Toode Versioonid
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

.NET 9 (package-provided) ja muud versioonid
Toode Versioonid
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

.NET 9 (package-provided) ja muud versioonid
Toode Versioonid
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9