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
Constructor
new GeneralName(
type,value):GeneralName
Parameters
type
value
string
Returns
GeneralName
Overrides
Constructor
new GeneralName(
asn):GeneralName
Parameters
asn
GeneralName
Returns
GeneralName
Overrides
Constructor
new GeneralName(
raw):GeneralName
Parameters
raw
BufferSource
Returns
GeneralName
Overrides
AsnData<asn1X509.GeneralName>.constructor
Properties
asn
protectedreadonlyasn:GeneralName
ASN.1 object
Inherited from
type
type:
GeneralNameType
Type of the storing value
value
value:
string
Text representation of ASN.1 GeneralName
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 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()
protectedgetTextName():string
Returns
string
Inherited from
onInit()
protectedonInit(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)