SignedCmsBuilder(Oid, Byte) Constructor

Initializes a new instance of SignedCmsBuilder from content type identifier and optional content.

Definition

Namespace: SysadminsLV.PKI.Cryptography.Pkcs
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public SignedCmsBuilder(
	Oid contentType,
	byte[] content = null
)

Parameters

contentType  Oid
An object identifier that identifies the content type stored in PKCS#7 message.
content  Byte  (Optional)
Content embedded in the PKCS#7 message. This parameter is optional.

Remarks

If content parameter is null, signing operation will fail. Only message encoding is allowed.

If content parameter is presented, the content must be properly encoded without outer SEQUENCE type.

See Also