EdhocException
An EDHOC session failed. error is what RFC 9528 §6 says to tell the peer, and errorMessage is that error message encoded, ready to send, or null when nothing may be sent. Like the exceptions of kcoap's other protocols, it is a KcoapException.
Messages and diagnostics never contain key material or secret-dependent detail. When the peer fails to authenticate (its credential is not trusted or does not fit the cipher suite, a certificate chain is rejected, or Signature_or_MAC_2 or _3 does not verify), error is the same error code 1 with the diagnostic "Authentication failed" whatever the reason, so a probing peer cannot learn which credentials are trusted; message keeps the precise reason for this side's logs. Error code 3 for an unknown 'kid' or 'x5t' is the exception (CredentialResolver explains it).
Inheritors
Constructors
Properties
The error to report: what the peer is told, and why this side failed.
The error message to send to the peer, or null when there is nothing to answer: the peer sent an error itself (RFC 9528 §6), or the failure happened before any message was received.