Class Index | File Index

Classes


Class KJUR.asn1.DEREnumerated


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

Class Summary
Constructor Attributes Constructor Name and Description
 
class for ASN.1 DER Enumerated
As for argument 'params' for constructor, you can specify one of following properties:
  • int - specify initial ASN.1 value(V) by integer value
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
NOTE: 'params' can be omitted.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.DEREnumerated.setByBigInteger(bigIntegerValue)
set value by Tom Wu's BigInteger object
<static>  
KJUR.asn1.DEREnumerated.setByInteger(integer)
set value by integer value
<static>  
KJUR.asn1.DEREnumerated.setValueHex(hexadecimal)
set value by integer value
NOTE: Value shall be represented by minimum octet length of two's complement representation.
Class Detail
KJUR.asn1.DEREnumerated()
class for ASN.1 DER Enumerated
As for argument 'params' for constructor, you can specify one of following properties:
  • int - specify initial ASN.1 value(V) by integer value
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
NOTE: 'params' can be omitted.
Method Detail
<static> KJUR.asn1.DEREnumerated.setByBigInteger(bigIntegerValue)
set value by Tom Wu's BigInteger object
Parameters:
{BigInteger} bigIntegerValue
to set

<static> KJUR.asn1.DEREnumerated.setByInteger(integer)
set value by integer value
Parameters:
{Integer} integer
value to set

<static> KJUR.asn1.DEREnumerated.setValueHex(hexadecimal)
set value by integer value
NOTE: Value shall be represented by minimum octet length of two's complement representation.
new KJUR.asn1.DEREnumerated(123);
new KJUR.asn1.DEREnumerated({'int': 123});
new KJUR.asn1.DEREnumerated({'hex': '1fad'});
Parameters:
{String} hexadecimal
string of integer value

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