Class KJUR.asn1.x509.BasicConstraints
Extends
KJUR.asn1.x509.Extension.
BasicConstraints ASN.1 structure class
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.x509.BasicConstraints(params)
BasicConstraints ASN.1 structure class
This class represents
BasicConstraints extension defined in RFC 5280 4.2.1.9.
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified, params
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.x509.BasicConstraints(params)
BasicConstraints ASN.1 structure class
This class represents
BasicConstraints extension defined in RFC 5280 4.2.1.9.
id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } BasicConstraints ::= SEQUENCE { cA BOOLEAN DEFAULT FALSE, pathLenConstraint INTEGER (0..MAX) OPTIONAL }Its constructor can have following parameters:
- {Boolean}cA - cA flag
- {Integer}pathLen - pathLen field value
- {Boolean}critical - critical flag
new KJUR.asn1.x509.BasicConstraints({ cA: true, pathLen: 3, critical: true })
- Parameters:
- {Array} params
- JSON object for parameters (ex. {cA:true,critical:true})
- See: