OscoreError
Why an OSCORE message was rejected, with the error response RFC 8613 §8.2 and §7.4 suggest for a server. The diagnostic strings are the ones the RFC proposes.
This set may gain constants in any minor release, also after 1.0, as kcoap covers more of OSCORE and the documents that extend it: a when over an error keeps an else branch, which can fall back on the constant's own responseCode and diagnostic. A new constant is an addition, not a breaking change (the project's versioning policy, docs/versioning.md).
Entries
§8.2 step 2: the OSCORE option or COSE object is malformed.
§8.2 step 2: no Recipient Context for the 'kid' (and 'kid context').
§8.2 step 6: the AEAD tag did not verify.
§7.2.1: the Sender Sequence Number reached its maximum; a new context is needed.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.