Class Index | File Index

Classes


Class KJUR.asn1.x509.KeyUsage


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

Class Summary
Constructor Attributes Constructor Name and Description
 
KeyUsage ASN.1 structure class This class is for KeyUsage X.509v3 extension.
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.KeyUsage(params)
KeyUsage ASN.1 structure class This class is for KeyUsage X.509v3 extension.
id-ce-keyUsage OBJECT IDENTIFIER ::=  { id-ce 15 }
KeyUsage ::= BIT STRING {
  digitalSignature   (0),
  nonRepudiation     (1),
  keyEncipherment    (2),
  dataEncipherment   (3),
  keyAgreement       (4),
  keyCertSign        (5),
  cRLSign            (6),
  encipherOnly       (7),
  decipherOnly       (8) }

NOTE: 'names' parameter is supprted since jsrsasign 8.0.14.
o = new KJUR.asn1.x509.KeyUsage({bin: "11"});
o = new KJUR.asn1.x509.KeyUsage({critical: true, bin: "11"});
o = new KJUR.asn1.x509.KeyUsage({names: ['digitalSignature', 'keyAgreement']});
Parameters:
{Array} params
associative array of parameters (ex. {'bin': '11', 'critical': true})

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