Class CBORSimple

java.lang.Object
org.webpki.cbor.CBORObject
org.webpki.cbor.CBORSimple
All Implemented Interfaces:
Cloneable, Comparable<CBORObject>

public class CBORSimple extends CBORObject
Class for holding CBOR #7.n (simple) objects.
  • Constructor Details

    • CBORSimple

      public CBORSimple(int value)
      Creates a CBOR #7.n (simple) object.

      Simple values are limited to: 0-23 and 32-255.

      Parameters:
      value - int value
      Throws:
      CBORException