EdhocError

class EdhocError(val code: Int, val info: CborValue)(source)

An EDHOC error message, RFC 9528 §6: the CBOR sequence ( ERR_CODE : int, ERR_INFO : any ).

Error messages are always fatal for the session that sends them. The codes of RFC 9528 Table 3 have typed accessors: diagnostic for code 1 and cipherSuites (SUITES_R) for code 2.

Constructors

Link copied to clipboard
constructor(code: Int, info: CborValue)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

SUITES_R of a wrong-selected-cipher-suite error (code 2, RFC 9528 §6.3), or null when the code is different or ERR_INFO is not of type suites. The order carries no meaning.

Link copied to clipboard
val code: Int

ERR_CODE. 0 is reserved for success and never appears on the wire (RFC 9528 §6.1).

Link copied to clipboard

The diagnostic text of an unspecified error (code 1, RFC 9528 §6.2), or null.

Link copied to clipboard

ERR_INFO; its type depends on code.

Functions

Link copied to clipboard

The error message bytes.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String