asn1js
Classes
- Any
- BaseBlock
- BaseStringBlock
- BitString
- BmpString
- Boolean
- CharacterString
- Choice
- Constructed
- DATE
- DateTime
- Duration
- EndOfContent
- Enumerated
- GeneralizedTime
- GeneralString
- GraphicString
- IA5String
- Integer
- Null
- NumericString
- ObjectIdentifier
- OctetString
- Primitive
- PrintableString
- RawData
- RelativeObjectIdentifier
- Repeated
- Sequence
- Set
- TeletexString
- TIME
- TimeOfDay
- UniversalString
- UTCTime
- Utf8String
- ValueBlock
- VideotexString
- ViewWriter
- VisibleString
Interfaces
- BaseBlockJson
- BaseBlockParams
- BaseStringBlockParams
- BitStringParams
- BooleanParams
- CompareSchemaFail
- CompareSchemaSuccess
- ConstructedParams
- FromBerResult
- GeneralizedTimeJson
- HexBlockJson
- IAny
- IBaseBlock
- IBerConvertible
- IChoice
- IDateConvertible
- IDerConvertible
- IGeneralizedTime
- IHexBlock
- IntegerParams
- IRawData
- IRepeated
- IStringConvertible
- IUTCTime
- ObjectIdentifierJson
- ObjectIdentifierParams
- OctetStringParams
- PrimitiveParams
- RelativeObjectIdentifierJson
- RelativeObjectIdentifierParams
- UTCTimeJson
- UTCTimeParams
- Utf8StringParams
- ValueBlockConstructor
Type Aliases
AnyParams
AnyParams:
Partial
<IAny
>
AsnSchemaType
AsnType
AsnType:
BaseBlock
|EndOfContent
|Boolean
|Integer
|BitString
|OctetString
|Null
|ObjectIdentifier
|Enumerated
|Utf8String
|RelativeObjectIdentifier
|TIME
|Sequence
|Set
|NumericString
|PrintableString
|TeletexString
|VideotexString
|IA5String
|UTCTime
|GeneralizedTime
|GraphicString
|VisibleString
|GeneralString
|UniversalString
|CharacterString
|BmpString
|DATE
|TimeOfDay
|DateTime
|Duration
|Constructed
|Primitive
BaseStringBlockJson
BaseStringBlockJson:
LocalStringValueBlockJson
BitStringJson
BitStringJson:
BaseBlockJson
<LocalBitStringValueBlockJson
>
BmpStringJson
BmpStringJson:
LocalBmpStringValueBlockJson
BmpStringParams
BmpStringParams:
LocalBmpStringValueBlockParams
BooleanJson
BooleanJson:
BaseBlockJson
<LocalBooleanValueBlockJson
>
CharacterStringJson
CharacterStringJson:
LocalSimpleStringBlockJson
CharacterStringParams
CharacterStringParams:
LocalSimpleStringBlockParams
ChoiceParams
ChoiceParams:
Partial
<IChoice
>
CompareSchemaResult
CompareSchemaResult:
CompareSchemaSuccess
|CompareSchemaFail
ConstructedJson
ConstructedJson:
BaseBlockJson
<LocalConstructedValueBlockJson
>
DATEJson
DATEJson:
Utf8StringJson
DATEParams
DATEParams:
Utf8StringParams
DateStringEncoding
DateStringEncoding:
StringEncoding
|"iso"
DateTimeJson
DateTimeJson:
Utf8StringJson
DateTimeParams
DateTimeParams:
Utf8StringParams
DurationJson
DurationJson:
Utf8StringJson
DurationParams
DurationParams:
Utf8StringParams
EndOfContentJson
EndOfContentJson:
BaseBlockJson
EndOfContentParams
EndOfContentParams:
BaseBlockParams
EnumeratedJson
EnumeratedJson:
IntegerJson
EnumeratedParams
EnumeratedParams:
IntegerParams
GeneralizedTimeParams
GeneralizedTimeParams:
UTCTimeParams
GeneralStringJson
GeneralStringJson:
LocalSimpleStringBlockJson
GeneralStringParams
GeneralStringParams:
LocalSimpleStringBlockParams
GraphicStringJson
GraphicStringJson:
LocalSimpleStringBlockJson
GraphicStringParams
GraphicStringParams:
LocalSimpleStringBlockParams
HexBlockParams
HexBlockParams:
Partial
<IHexBlock
>
IA5StringJson
IA5StringJson:
LocalSimpleStringBlockJson
IA5StringParams
IA5StringParams:
LocalSimpleStringBlockParams
IntegerJson
IntegerJson:
BaseBlockJson
<LocalIntegerValueBlockJson
>
IValueBlock
IValueBlock:
internals.ILocalBaseBlock
NullJson
NullJson:
BaseBlockJson
<ValueBlockJson
>
NullParams
NullParams:
BaseBlockParams
NumericStringJson
NumericStringJson:
LocalSimpleStringBlockJson
NumericStringParams
NumericStringParams:
LocalSimpleStringBlockParams
OctetStringJson
OctetStringJson:
BaseBlockJson
<LocalOctetStringValueBlockJson
>
PrimitiveJson
PrimitiveJson:
BaseBlockJson
<LocalPrimitiveValueBlockJson
>
PrintableStringJson
PrintableStringJson:
LocalSimpleStringBlockJson
PrintableStringParams
PrintableStringParams:
LocalSimpleStringBlockParams
RawDataParams
RawDataParams:
Partial
<IRawData
>
RepeatedParams
RepeatedParams:
Partial
<IRepeated
>
SequenceJson
SequenceJson:
ConstructedJson
SequenceParams
SequenceParams:
ConstructedParams
SetJson
SetJson:
ConstructedJson
SetParams
SetParams:
ConstructedParams
StringEncoding
StringEncoding:
"ascii"
|"hex"
TeletexStringJson
TeletexStringJson:
LocalSimpleStringBlockJson
TeletexStringParams
TeletexStringParams:
LocalSimpleStringBlockParams
TIMEJson
TIMEJson:
Utf8StringJson
TimeOfDayJson
TimeOfDayJson:
Utf8StringJson
TimeOfDayParams
TimeOfDayParams:
Utf8StringParams
TIMEParams
TIMEParams:
Utf8StringParams
UniversalStringJson
UniversalStringJson:
LocalUniversalStringValueBlockJson
UniversalStringParams
UniversalStringParams:
LocalUniversalStringValueBlockParams
Utf8StringJson
Utf8StringJson:
BaseBlockJson
<LocalUtf8StringValueBlockJson
>
ValueBlockJson
ValueBlockJson:
internals.LocalBaseBlockJson
ValueBlockParams
ValueBlockParams:
internals.LocalBaseBlockParams
VideotexStringJson
VideotexStringJson:
LocalSimpleStringBlockJson
VideotexStringParams
VideotexStringParams:
LocalSimpleStringBlockParams
VisibleStringJson
VisibleStringJson:
LocalSimpleStringBlockJson
VisibleStringParams
VisibleStringParams:
LocalSimpleStringBlockParams
Functions
compareSchema()
compareSchema(
root
,inputData
,inputSchema
):CompareSchemaResult
Compare of two ASN.1 object trees
Parameters
root
Root of input ASN.1 object tree
inputData
Input ASN.1 object tree
inputSchema
Input ASN.1 schema to compare with
Returns
Returns result of comparison
fromBER()
fromBER(
inputBuffer
):FromBerResult
Major function for decoding ASN.1 BER array into internal library structures
Parameters
inputBuffer
BufferSource
ASN.1 BER encoded array of bytes
Returns
HexBlock()
HexBlock<
T
>(BaseClass
): (...args
) =>Some
<T
> &T
Class used as a base block for all remaining ASN.1 classes
Type Parameters
• T extends LocalBaseBlockConstructor
<LocalBaseBlock
>
Parameters
BaseClass
T
Returns
(...args
) => Some
<T
> & T
verifySchema()
verifySchema(
inputBuffer
,inputSchema
):CompareSchemaResult
ASN.1 schema verification for ArrayBuffer data
Parameters
inputBuffer
BufferSource
Input BER-encoded ASN.1 data
inputSchema
Input ASN.1 schema to verify against to