GeneralName
Represents ASN.1 type of GeneralName.
This class doesn't support no standard string format is defined for otherName, X.400 name, EDI party name, or any other type of names.
Extends
AsnData
<asn1X509.GeneralName
>
Constructors
new GeneralName()
new GeneralName(
type
,value
):GeneralName
Parameters
• type: GeneralNameType
• value: string
Returns
Overrides
new GeneralName()
new GeneralName(
asn
):GeneralName
Parameters
• asn: GeneralName
Returns
Overrides
new GeneralName()
new GeneralName(
raw
):GeneralName
Parameters
• raw: BufferSource
Returns
Overrides
AsnData<asn1X509.GeneralName>.constructor
Properties
rawData
readonly
rawData:ArrayBuffer
Gets a DER encoded buffer
Inherited from
type
type:
GeneralNameType
Type of the storing value
value
value:
string
Text representation of ASN.1 GeneralName
NAME
static
NAME:string
="ASN"
Inherited from
Methods
equal()
equal(
data
):data is GeneralName
Returns true
if ASN.1 data is equal to another ASN.1 data, otherwise false
Parameters
• data: any
Any data
Returns
data is GeneralName
Inherited from
getTextName()
protected
getTextName():string
Returns
string
Inherited from
onInit()
protected
onInit(asn
):void
Occurs on instance initialization
Parameters
• asn: GeneralName
Returns
void
Throws
Throws error if ASN.1 GeneralName contains unsupported value (eg otherName, X400 address, EDI party name)
Overrides
toJSON()
toJSON():
JsonGeneralName
Returns
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