abstract
AsnData<T>
Represents an ASN.1 data
Extended by
Type Parameters
• T
Implements
Constructors
new AsnData()
new AsnData<
T
>(raw
,type
):AsnData
<T
>
Creates a new instance
Parameters
• raw: BufferSource
DER encoded buffer
• type
ASN.1 convertible class for @peculiar/asn1-schema
schema
Returns
AsnData
<T
>
new AsnData()
new AsnData<
T
>(asn
):AsnData
<T
>
ASN.1 object
Parameters
• asn: T
Returns
AsnData
<T
>
Properties
rawData
readonly
rawData:ArrayBuffer
Gets a DER encoded buffer
NAME
static
NAME:string
="ASN"
Methods
equal()
equal(
data
):data is AsnData<T>
Returns true
if ASN.1 data is equal to another ASN.1 data, otherwise false
Parameters
• data: any
Any data
Returns
data is AsnData<T>
getTextName()
protected
getTextName():string
Returns
string
onInit()
abstract
protected
onInit(asn
):void
Occurs on instance initialization
Parameters
• asn: T
ASN.1 object
Returns
void
toString()
toString(
format
):string
Returns a string representation of an object.
Parameters
• format: AsnDataStringFormat
= "text"
Returns
string
toTextObject()
toTextObject():
TextObject
Returns the object in textual representation
Returns
Implementation of
TextObjectConvertible
.toTextObject
toTextObjectEmpty()
protected
toTextObjectEmpty(value
?):TextObject
Parameters
• value?: string