Class CBORType

java.lang.Object
org.bouncycastle.cbor.CBORType

public final class CBORType extends Object
CBOR major type constants, as defined in Section 3.1 of RFC 8949.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Major type 4: an array of data items.
    static final int
    Major type 2: a byte string.
    static final int
    Major type 5: a map of pairs of data items.
    static final int
    Major type 1: a negative integer in the range -2^64 to -1.
    static final int
    Major type 7: floating-point numbers and simple values (false, true, null, undefined).
    static final int
    Major type 6: a tagged data item.
    static final int
    Major type 3: a text string encoded as UTF-8.
    static final int
    Major type 0: an unsigned integer in the range 0 to 2^64-1.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • UNSIGNED_INTEGER

      public static final int UNSIGNED_INTEGER
      Major type 0: an unsigned integer in the range 0 to 2^64-1.
      See Also:
    • NEGATIVE_INTEGER

      public static final int NEGATIVE_INTEGER
      Major type 1: a negative integer in the range -2^64 to -1.
      See Also:
    • BYTE_STRING

      public static final int BYTE_STRING
      Major type 2: a byte string.
      See Also:
    • TEXT_STRING

      public static final int TEXT_STRING
      Major type 3: a text string encoded as UTF-8.
      See Also:
    • ARRAY

      public static final int ARRAY
      Major type 4: an array of data items.
      See Also:
    • MAP

      public static final int MAP
      Major type 5: a map of pairs of data items.
      See Also:
    • TAG

      public static final int TAG
      Major type 6: a tagged data item.
      See Also:
    • SIMPLE

      public static final int SIMPLE
      Major type 7: floating-point numbers and simple values (false, true, null, undefined).
      See Also: