SignedCmsBuilder Constructor (Oid, Byte) |
Initializes a new instance of SignedCmsBuilder from content type identifier and optional content.
Namespace:
SysadminsLV.PKI.Cryptography.Pkcs
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public SignedCmsBuilder(
Oid contentType,
byte[] content = null
)
Public Sub New (
contentType As Oid,
Optional content As Byte() = Nothing
)
public:
SignedCmsBuilder(
Oid^ contentType,
array<unsigned char>^ content = nullptr
)
new :
contentType : Oid *
?content : byte[]
(* Defaults:
let _content = defaultArg content null
*)
-> SignedCmsBuilder
Parameters
- contentType
- Type: System.Security.CryptographyOid
An object identifier that identifies the content type stored in PKCS#7 message. - content (Optional)
- Type: SystemByte
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