asn1js
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
GeneralStringJson
GeneralStringJson:
LocalSimpleStringBlockJson
GeneralStringParams
GeneralStringParams:
LocalSimpleStringBlockParams
GeneralizedTimeParams
GeneralizedTimeParams:
UTCTimeParams
GraphicStringJson
GraphicStringJson:
LocalSimpleStringBlockJson
GraphicStringParams
GraphicStringParams:
LocalSimpleStringBlockParams
HexBlockParams
HexBlockParams:
Partial
<IHexBlock
>
IA5StringJson
IA5StringJson:
LocalSimpleStringBlockJson
IA5StringParams
IA5StringParams:
LocalSimpleStringBlockParams
IValueBlock
IValueBlock:
internals.ILocalBaseBlock
IntegerJson
IntegerJson:
BaseBlockJson
<LocalIntegerValueBlockJson
>
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"
TIMEJson
TIMEJson:
Utf8StringJson
TIMEParams
TIMEParams:
Utf8StringParams
TeletexStringJson
TeletexStringJson:
LocalSimpleStringBlockJson
TeletexStringParams
TeletexStringParams:
LocalSimpleStringBlockParams
TimeOfDayJson
TimeOfDayJson:
Utf8StringJson
TimeOfDayParams
TimeOfDayParams:
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
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
compareSchema()
compareSchema(
root
,inputData
,inputSchema
):CompareSchemaResult
Compare of two ASN.1 object trees
Parameters
• root: AsnType
Root of input ASN.1 object tree
• inputData: AsnType
Input ASN.1 object tree
• inputSchema: AsnSchemaType
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
verifySchema()
verifySchema(
inputBuffer
,inputSchema
):CompareSchemaResult
ASN.1 schema verification for ArrayBuffer data
Parameters
• inputBuffer: BufferSource
Input BER-encoded ASN.1 data
• inputSchema: AsnSchemaType
Input ASN.1 schema to verify against to
Returns
Classes
- Any
- BaseBlock
- BaseStringBlock
- BitString
- BmpString
- Boolean
- CharacterString
- Choice
- Constructed
- DATE
- DateTime
- Duration
- EndOfContent
- Enumerated
- GeneralString
- GeneralizedTime
- GraphicString
- IA5String
- Integer
- Null
- NumericString
- ObjectIdentifier
- OctetString
- Primitive
- PrintableString
- RawData
- RelativeObjectIdentifier
- Repeated
- Sequence
- Set
- TIME
- TeletexString
- TimeOfDay
- UTCTime
- UniversalString
- 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
- IRawData
- IRepeated
- IStringConvertible
- IUTCTime
- IntegerParams
- ObjectIdentifierJson
- ObjectIdentifierParams
- OctetStringParams
- PrimitiveParams
- RelativeObjectIdentifierJson
- RelativeObjectIdentifierParams
- UTCTimeJson
- UTCTimeParams
- Utf8StringParams
- ValueBlockConstructor