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
 
setByBigInteger(bigIntegerValue)
set value by Tom Wu's BigInteger object
 
setByInteger(integer)
set value by integer value
 
setValueHex(hexadecimal)
set value by integer value
NOTE: Value shall be represented by minimum octet length of two's complement representation.
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
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.
new KJUR.asn1.DEREnumerated(123);
new KJUR.asn1.DEREnumerated({int: 123});
new KJUR.asn1.DEREnumerated({hex: '1fad'});
Method Detail
setByBigInteger(bigIntegerValue)
set value by Tom Wu's BigInteger object
Parameters:
{BigInteger} bigIntegerValue
to set

setByInteger(integer)
set value by integer value
Parameters:
{Integer} integer
value to set

setValueHex(hexadecimal)
set value by integer value
NOTE: Value shall be represented by minimum octet length of two's complement representation.
Parameters:
{String} hexadecimal
string of integer value

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