Class CBORType
java.lang.Object
org.bouncycastle.cbor.CBORType
CBOR major type constants, as defined in Section 3.1 of RFC 8949.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMajor type 4: an array of data items.static final intMajor type 2: a byte string.static final intMajor type 5: a map of pairs of data items.static final intMajor type 1: a negative integer in the range -2^64 to -1.static final intMajor type 7: floating-point numbers and simple values (false, true, null, undefined).static final intMajor type 6: a tagged data item.static final intMajor type 3: a text string encoded as UTF-8.static final intMajor type 0: an unsigned integer in the range 0 to 2^64-1. -
Method Summary
-
Field Details
-
UNSIGNED_INTEGER
public static final int UNSIGNED_INTEGERMajor type 0: an unsigned integer in the range 0 to 2^64-1.- See Also:
-
NEGATIVE_INTEGER
public static final int NEGATIVE_INTEGERMajor type 1: a negative integer in the range -2^64 to -1.- See Also:
-
BYTE_STRING
public static final int BYTE_STRINGMajor type 2: a byte string.- See Also:
-
TEXT_STRING
public static final int TEXT_STRINGMajor type 3: a text string encoded as UTF-8.- See Also:
-
ARRAY
public static final int ARRAYMajor type 4: an array of data items.- See Also:
-
MAP
public static final int MAPMajor type 5: a map of pairs of data items.- See Also:
-
TAG
public static final int TAGMajor type 6: a tagged data item.- See Also:
-
SIMPLE
public static final int SIMPLEMajor type 7: floating-point numbers and simple values (false, true, null, undefined).- See Also:
-