Class Index | File Index

Classes


Class KJUR.asn1.DERInteger


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

Class Summary
Constructor Attributes Constructor Name and Description
 
class for ASN.1 DER Integer
As for argument 'params' for constructor, you can specify one of following properties:
  • int - specify initial ASN.1 value(V) by integer value
  • bigint - specify initial ASN.1 value(V) by BigInteger object
  • 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
<static>  
KJUR.asn1.DERInteger.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.DERInteger()
class for ASN.1 DER Integer
As for argument 'params' for constructor, you can specify one of following properties:
  • int - specify initial ASN.1 value(V) by integer value
  • bigint - specify initial ASN.1 value(V) by BigInteger object
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
NOTE: 'params' can be omitted.
Method Detail
setByBigInteger(bigIntegerValue)
set value by Tom Wu's BigInteger object
Parameters:
{BigInteger} bigIntegerValue
to set

<static> KJUR.asn1.DERInteger.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.
new KJUR.asn1.DERInteger(123);
new KJUR.asn1.DERInteger({'int': 123});
new KJUR.asn1.DERInteger({'hex': '1fad'});
Parameters:
{String} hexadecimal
string of integer value

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