Package org.webpki.cbor
Class CBORBigInt
java.lang.Object
org.webpki.cbor.CBORObject
org.webpki.cbor.CBORBigInt
- All Implemented Interfaces:
Cloneable
,Comparable<CBORObject>
Class for holding CBOR
bignum
and integer
objects.
Note that the encoder is adaptive, selecting the proper CBOR representation in order to produce a fully deterministic result.
See alsoCBORInt
.-
Constructor Summary
-
Method Summary
Methods inherited from class org.webpki.cbor.CBORObject
checkForUnread, clone, compareTo, encode, equals, getArray, getBigInteger, getBoolean, getBytes, getFloat16, getFloat32, getFloat64, getInt16, getInt32, getInt64, getInt8, getMap, getString, getTag, getUint16, getUint32, getUint64, getUint8, hashCode, isNull, scan, toDiagnosticNotation, toString
-
Constructor Details
-
CBORBigInt
Creates a CBOR integer value of any size.Note: if
value
is within the CBORinteger
range,integer
encoding will be used, otherwisevalue
will be encoded as a CBORbignum
.- Parameters:
value
- Integer in BigInteger format
-