Class Index | File Index

Classes


Class KJUR.asn1.x509.PrivateExtension


Extends KJUR.asn1.x509.Extension.
private extension ASN.1 structure class
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
priavte extension ASN.1 structure class
This class is to represent private extension or unsupported extension.
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.PrivateExtension(params)
priavte extension ASN.1 structure class
This class is to represent private extension or unsupported extension.
Extension  ::=  SEQUENCE  {
     extnID      OBJECT IDENTIFIER,
     critical    BOOLEAN DEFAULT FALSE,
     extnValue   OCTET STRING }
Following properties can be set for JSON parameter:
  • {String}extname - string of OID or predefined extension name
  • {Boolean}critical - critical flag
  • {Object}extn - hexadecimal string or of KJUR.asn1.ASN1Util.newObject JSON parameter for extnValue field
// extn by hexadecimal
new KJUR.asn1.x509.PrivateExtension({
  extname: "1.2.3.4",
  critical: true,
  extn: "13026161" // means PrintableString "aa"
});

// extn by JSON parameter
new KJUR.asn1.x509.PrivateExtension({
  extname: "1.2.3.5",
  extn: {seq: [{prnstr:"abc"},{utf8str:"def"}]}
});
Parameters:
{Array} params
JSON object of private extension
Since:
jsrsasign 9.1.1 asn1x509
See:
KJUR.asn1.ASN1Util.newObject

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