Package org.webpki.cbor
Class CBORSimple
java.lang.Object
org.webpki.cbor.CBORObject
org.webpki.cbor.CBORSimple
- All Implemented Interfaces:
Cloneable
,Comparable<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 Summary
Constructors -
Method Summary
Methods inherited from class org.webpki.cbor.CBORObject
checkForUnread, clone, compareTo, encode, equals, getArray, getBigInteger, getBoolean, getBytes, getDateTime, getEpochTime, getExtendedFloat64, getFloat16, getFloat32, getFloat64, getInt16, getInt32, getInt64, getInt8, getMap, getSimple, getString, getTag, getUint16, getUint32, getUint64, getUint8, hashCode, isNull, scan, toDiagnosticNotation, toString
-
Constructor Details
-
CBORSimple
public CBORSimple(int value) Creates a CBOR#7.n
(simple) object.Simple values are limited to:
0-23
and32-255
.- Parameters:
value
- Value/type of simple- Throws:
CBORException
- See Also:
-