Class EncapsulatedContentInfo
A CMS EncapsulatedContentInfo (RFC 5652 §5.2). For detached signatures, the
Content is null.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class EncapsulatedContentInfo
Constructors
View SourceEncapsulatedContentInfo(string, byte[]?)
Initializes a new instance of the EncapsulatedContentInfo class.
Declaration
public EncapsulatedContentInfo(string contentType, byte[]? content)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contentType | The content type used by the operation. |
| byte[] | content | Specifies the content value. |
Properties
View SourceContent
Gets the encapsulated content bytes, or null for a detached signature.
Declaration
public byte[]? Content { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
ContentType
Gets the content type OID (typically id-data).
Declaration
public string ContentType { get; }
Property Value
| Type | Description |
|---|---|
| string |
HasContent
Gets a value indicating whether the content is present (not detached).
Declaration
public bool HasContent { get; }
Property Value
| Type | Description |
|---|---|
| bool |