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 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
Constructors -
Method Summary
Methods inherited from class org.webpki.cbor.CBORObject
checkForUnread, clone, compareTo, encode, equals, getArray, getBigInteger, getBoolean, getBytes, getDateTime, getEpochTime, getFloat16, getFloat32, getFloat64, getInt16, getInt32, getInt64, getInt8, getMap, getSimple, 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 CBORint
range,int
encoding will be used, otherwisevalue
will be encoded as a CBORbigint
.- Parameters:
value
- Integer in BigInteger format
-