WebCrypto GOST Class: DataContentInfo

GostCMS. DataContentInfo

Constructor

new DataContentInfo(contentInfo, defaultSet)

The base class for all CMS objects.

A CMS object consists of a content type, and content.

Parameters:
Name Type Description
contentInfo FormatedData | GostASN1.ContentInfo The content object.
defaultSet string The default object initialization set.
Source:

Extends

Members

isDetached

Indicates if this is a detached CMS object.
Source:

Methods

check()

Check the object structure
Inherited From:
Source:

decode(source)

Decode the source to self object
Parameters:
Name Type Description
source FormatedData Encoded data
Inherited From:
Source:

encloseContent(contentInfo) → {Promise}

Enclose content to document.
Parameters:
Name Type Description
contentInfo FormatedData | GostASN1.ContentInfo
Source:
Returns:
Promise to return self object after enclose content
Type
Promise

encode(format) → {FormatedData}

Encode the message to binary format 'DER' or 'PEM'
Parameters:
Name Type Description
format string
Overrides:
Source:
Returns:
Type
FormatedData

getEnclosed() → {GostASN1.ContentInfo}

Returns the document which attached. If the content is not attached, the CMS object which is returned will be degenerate.
Source:
Returns:
The encapsulated CMS Object.
Type
GostASN1.ContentInfo

setEnclosed(contentInfo)

Sets the content of attached document.

This is necessary only in detached mode.
Parameters:
Name Type Description
contentInfo FormatedData | GostASN1.ContentInfo The encapsulated CMS Object.
Source:

writeDetached(createDetached)

Indicates if an external (detached) signature must be created.
Parameters:
Name Type Description
createDetached boolean True if detached; false otherwise.
Source: