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
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex
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 ExtensionNOTE: From jsrsasign 9.1.1, private extension or undefined extension have been supported by 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.getEncodedHex() → "30..."
- Parameters:
- {Array} aParam
- array of JSON extension parameter
- Since:
- jsrsasign 9.1.0 asn1x509 2.1.0