Extension
Represents the certificate extension
Extends
AsnData<AsnExtension>
Extended by
AuthorityKeyIdentifierExtensionBasicConstraintsExtensionExtendedKeyUsageExtensionKeyUsagesExtensionSubjectKeyIdentifierExtensionSubjectAlternativeNameExtensionCertificatePolicyExtensionCRLDistributionPointsExtensionAuthorityInfoAccessExtensionIssuerAlternativeNameExtension
Constructors
Constructor
new Extension(
raw):Extension
Creates a new instance from DER encoded Buffer
Parameters
raw
BufferSource
DER encoded buffer
Returns
Extension
Overrides
Constructor
new Extension(
type,critical,value):Extension
Creates a new instance
Parameters
type
string
Extension identifier
critical
boolean
Indicates where extension is critical
value
BufferSource
DER encoded value of extension
Returns
Extension
Overrides
Properties
asn
protectedreadonlyasn:AsnExtension
ASN.1 object
Inherited from
critical
critical:
boolean
Indicates where extension is critical
type
type:
string
Gets an extension identifier
value
value:
ArrayBuffer
Gets a DER encoded value of extension
NAME
staticNAME:string="ASN"
Inherited from
Accessors
rawData
Get Signature
get rawData():
ArrayBuffer
Gets a DER encoded buffer
Returns
ArrayBuffer
Inherited from
Methods
equal()
equal(
data):data is Extension
Returns true if ASN.1 data is equal to another ASN.1 data, otherwise false
Parameters
data
any
Any data
Returns
data is Extension
Inherited from
getTextName()
protectedgetTextName():string
Returns
string
Inherited from
onInit()
protectedonInit(asn):void
Occurs on instance initialization
Parameters
asn
AsnExtension
ASN.1 object
Returns
void
Overrides
toString()
toString(
format):string
Returns a string representation of an object.
Parameters
format
AsnDataStringFormat = "text"
Returns
string
Inherited from
toTextObject()
toTextObject():
TextObject
Returns the object in textual representation
Returns
Overrides
toTextObjectEmpty()
protectedtoTextObjectEmpty(value?):TextObject
Parameters
value?
string
Returns
Inherited from
toTextObjectWithoutValue()
toTextObjectWithoutValue():
TextObject