SubjectAlternativeNameExtension
Represents the Subject Alternative Name certificate extension
Extends
Constructors
new SubjectAlternativeNameExtension()
new SubjectAlternativeNameExtension(
raw
):SubjectAlternativeNameExtension
Creates a new instance from DER encoded buffer
Parameters
• raw: BufferSource
DER encoded buffer
Returns
SubjectAlternativeNameExtension
Overrides
new SubjectAlternativeNameExtension()
new SubjectAlternativeNameExtension(
data
?,critical
?):SubjectAlternativeNameExtension
Creates a new instance
Parameters
• data?: JsonGeneralNames
JSON representation of SAN
• critical?: boolean
Indicates where extension is critical. Default is false
Returns
SubjectAlternativeNameExtension
Overrides
Properties
critical
critical:
boolean
Indicates where extension is critical
Inherited from
names
names:
GeneralNames
rawData
readonly
rawData:ArrayBuffer
Gets a DER encoded buffer
Inherited from
type
type:
string
Gets an extension identifier
Inherited from
value
value:
ArrayBuffer
Gets a DER encoded value of extension
Inherited from
NAME
static
NAME:string
="Subject Alternative Name"
Overrides
Methods
equal()
equal(
data
):data is SubjectAlternativeNameExtension
Returns true
if ASN.1 data is equal to another ASN.1 data, otherwise false
Parameters
• data: any
Any data
Returns
data is SubjectAlternativeNameExtension
Inherited from
getTextName()
protected
getTextName():string
Returns
string
Inherited from
onInit()
onInit(
asn
):void
Occurs on instance initialization
Parameters
• asn: Extension
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()
protected
toTextObjectEmpty(value
?):TextObject
Parameters
• value?: string
Returns
Inherited from
toTextObjectWithoutValue()
toTextObjectWithoutValue():
TextObject