Class Index | File Index

Classes


Class KJUR.asn1.DERTaggedObject


Extends KJUR.asn1.ASN1Object.
class for ASN.1 DER TaggedObject
Defined in: asn1-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
class for ASN.1 DER TaggedObject
Parameter 'tagNoNex' is ASN.1 tag(T) value for this object.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
 
setString(isExplicitFlag, tagNoHex, asn1Object)
set value by an ASN1Object
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.DERTaggedObject()
class for ASN.1 DER TaggedObject
Parameter 'tagNoNex' is ASN.1 tag(T) value for this object. For example, if you find '[1]' tag in a ASN.1 dump, 'tagNoHex' will be 'a1'.
As for optional argument 'params' for constructor, you can specify *ANY* of following properties:
  • explicit - specify true if this is explicit tag otherwise false (default is 'true').
  • tag - specify tag (default is 'a0' which means [0])
  • obj - specify ASN1Object which is tagged
d1 = new KJUR.asn1.DERUTF8String({'str':'a'});
d2 = new KJUR.asn1.DERTaggedObject({'obj': d1});
hex = d2.getEncodedHex();
Method Detail
setString(isExplicitFlag, tagNoHex, asn1Object)
set value by an ASN1Object
Parameters:
{Boolean} isExplicitFlag
flag for explicit/implicit tag
{Integer} tagNoHex
hexadecimal string of ASN.1 tag
{ASN1Object} asn1Object
ASN.1 to encapsulate

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