Class CBORBigInt

java.lang.Object
org.webpki.cbor.CBORObject
org.webpki.cbor.CBORBigInt
All Implemented Interfaces:
Cloneable

public class CBORBigInt extends 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.

Also see CBORInt.
  • Constructor Details

    • CBORBigInt

      public CBORBigInt(BigInteger value)
      Creates a CBOR integer value of any size.

      Note: if value is within the CBOR integer range, integer encoding will be used, otherwise value will be encoded as a CBOR bignum.

      Parameters:
      value - Integer in BigInteger format