EnvelopedCms Constructor (SubjectIdentifierType, ContentInfo, AlgorithmIdentifier)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The EnvelopedCms(SubjectIdentifierType, ContentInfo, AlgorithmIdentifier) constructor creates an instance of the EnvelopedCms class by using the specified subject identifier type, content information, and encryption algorithm. The specified content information is to be used as the inner content type.

Namespace:   System.Security.Cryptography.Pkcs
Assembly:  System.Security (in System.Security.dll)

public EnvelopedCms(
	SubjectIdentifierType recipientIdentifierType,
	ContentInfo contentInfo,
	AlgorithmIdentifier encryptionAlgorithm
)

Parameters

recipientIdentifierType
Type: System.Security.Cryptography.Pkcs.SubjectIdentifierType

A member of the SubjectIdentifierType enumeration that specifies the means of identifying the recipient.

contentInfo
Type: System.Security.Cryptography.Pkcs.ContentInfo

A ContentInfo object that represents the content and its type.

encryptionAlgorithm
Type: System.Security.Cryptography.Pkcs.AlgorithmIdentifier

An AlgorithmIdentifier object that specifies the encryption algorithm.

Exception Condition
ArgumentNullException

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

.NET Framework
Available since 2.0
Return to top
Show: