Class KJUR.asn1.x509.Extensions
Extends
KJUR.asn1.ASN1Object.
Extensions ASN.1 structure class
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.x509.Extensions(aParam)
Extensions ASN.1 structure class
This class represents Extensions defined in RFC 5280 4.1 and 4.1.2.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.Extensions(aParam)
Extensions ASN.1 structure class
This class represents Extensions defined in RFC 5280 4.1 and 4.1.2.9.
This class represents Extensions defined in RFC 5280 4.1 and 4.1.2.9.
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension
NOTE: From jsrsasign 9.1.1, private extension or undefined extension have been supported by KJUR.asn1.x509.PrivateExtension.
Here is a list of available extensions:- KJUR.asn1.x509.BasicConstraints
- KJUR.asn1.x509.KeyUsage
- KJUR.asn1.x509.SubjectKeyIdentifier
- KJUR.asn1.x509.AuthorityKeyIdentifier
- KJUR.asn1.x509.SubjectAltName
- KJUR.asn1.x509.IssuerAltName
- KJUR.asn1.x509.CRLDistributionPoints
- KJUR.asn1.x509.CertificatePolicies
- KJUR.asn1.x509.CRLNumber
- KJUR.asn1.x509.CRLReason
- KJUR.asn1.x509.OCSPNonce
- KJUR.asn1.x509.OCSPNoCheck
- KJUR.asn1.x509.AdobeTimeStamp
- KJUR.asn1.x509.SubjectDirectoryAttributes
- KJUR.asn1.x509.PrivateExtension
o = new KJUR.asn1.x509.Extensions([ {extname:"keyUsage",critical:true,names:["digitalSignature"]}, {extname:"subjectAltName",array:[{dns:"example.com"}]}, {extname:"1.2.3.4",extn:{prnstr:"aa"}} // private extension ]); o.tohex() → "30..."
- Parameters:
- {Array} aParam
- array of JSON extension parameter
- Since:
- jsrsasign 9.1.0 asn1x509 2.1.0