Class Index | File Index

Classes


Class KJUR.asn1.x509.Extensions


Extends KJUR.asn1.ASN1Object.
Extensions ASN.1 structure class
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
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
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.
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.
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
See:
KJUR.asn1.x509.TBSCertificate
KJUR.asn1.x509.TBSCertList
KJUR.asn1.csr.CertificationRequestInfo
KJUR.asn1.x509.PrivateExtension

© 2012-2020 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0