Class KJUR.asn1.x509.Extension
Extends
KJUR.asn1.ASN1Object.
base Extension ASN.1 structure class
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.x509.Extension(params)
base Extension ASN.1 structure class
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.x509.Extension.appendByNameToArray(name, extParams, a)
append X.509v3 extension to any specified array
This static function add a X.509v3 extension specified by name and extParams to array 'a' so that 'a' will be an array of X.509v3 extension objects. |
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.x509.Extension(params)
base Extension ASN.1 structure class
// Extension ::= SEQUENCE { // extnID OBJECT IDENTIFIER, // critical BOOLEAN DEFAULT FALSE, // extnValue OCTET STRING }
- Parameters:
- {Array} params
- associative array of parameters (ex. {'critical': true})
Method Detail
<static>
KJUR.asn1.x509.Extension.appendByNameToArray(name, extParams, a)
append X.509v3 extension to any specified array
This static function add a X.509v3 extension specified by name and extParams to array 'a' so that 'a' will be an array of X.509v3 extension objects. See KJUR.asn1.x509.TBSCertificate#appendExtensionByName for supported names of extensions.
This static function add a X.509v3 extension specified by name and extParams to array 'a' so that 'a' will be an array of X.509v3 extension objects. See KJUR.asn1.x509.TBSCertificate#appendExtensionByName for supported names of extensions.
var a = new Array(); KJUR.asn1.x509.Extension.appendByNameToArray("BasicConstraints", {'cA':true, 'critical': true}, a); KJUR.asn1.x509.Extension.appendByNameToArray("KeyUsage", {'bin':'11'}, a);
- Parameters:
- {String} name
- X.509v3 extension name
- {Object} extParams
- associative array of extension parameters
- {Array} a
- array to add specified extension
- Since:
- jsrsasign 6.2.3 asn1x509 1.0.19