Constructor
new Sequence(object, check)
Create SEQUENCE ASN.1 metaclass
Parameters:
| Name | Type | Description |
|---|---|---|
object |
Object | FormatedData | Initialization object |
check |
boolean | Check structure after initialization |
- Source:
Methods
-
(static) decode(source) → {GostASN1.Sequence}
-
Decode source and create object
Parameters:
Name Type Description sourceFormatedData Encoded data - Source:
Returns:
- Type
- GostASN1.Sequence
-
(static) encode(object, format) → {FormatedData}
-
Encode data values with creating object
Parameters:
Name Type Description objectObject Javascript object to encoding formatstring Encoding format 'DER', 'CER' or 'PEM' - Source:
Returns:
- Type
- FormatedData
-
check()
-
Check the object structure
- Source:
-
decode(source)
-
Decode the source to self object
Parameters:
Name Type Description sourceFormatedData Encoded data - Source:
-
encode(format) → {FormatedData}
-
Encode the object
Parameters:
Name Type Description formatstring Encoding format 'DER', 'CER' or 'PEM' - Source:
Returns:
- Type
- FormatedData