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.

A primary use case for simple types in the range of 0-19 and 32-255, is serving as a limited set of unique and reserved labels (keys) in CBOR maps. The simple(99) label featured in Embedded Signatures shows a representative example.

  • 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 - Value/type of simple
      Throws:
      CBORException
      See Also: