DataItem
Abstract base class for CBOR data items.
Instances of DataItem are immutable and implement the equals, hashCode, and toString methods.
To assist with parsing, a number of helper properties are included on this class to access the data using specific types. These include asBstr, asTstr, asNumber etc. for primitive types and also include higher-level types such as asCoseSign1 to get a CoseSign1.
CBOR maps and CBOR arrays can be accessed using the get method which is also available via the bracket operator. Note that get will throw if the requested key isn't available in the map. The hasKey, getOrDefault, or getOrNull methods can be used in situations where the key is optional.
Parameters
the CBOR major type of the data item.
Inheritors
Properties
The value of a data item containing a COSE label (either number or string)
The value of a data item containing a COSE_Mac0.
The value of a data item containing a COSE_Sign1.
The date-time from a tstr with tag Tagged.FULL_DATE_STRING.
The date-time from a tstr with tag Tagged.DATE_TIME_STRING.
The decoded CBOR from a bstr with tag Tagged.ENCODED_CBOR.
The value of a data item containing a certificate.
The value of a data item containing a certificate chain.