Unverified

class Unverified(val message: CoapMessage, val reason: String) : ResponseVerification(source)

The response could not be verified: an error without message security, such as OSCORE's unprotected 4.01 or 4.02 (RFC 8613 §8.2) or an intermediary's 5.04, which anyone who saw the token can send. The stack acts on nothing in it: it does not repeat the request for an Echo option, continue a block-wise body, change what it knows about the peer, or end an observation. A request without a verified response yet ends with kcoap-coap's CoapException.Reason.UNVERIFIED_RESPONSE, which carries message; an established observation drops it.

Constructors

Link copied to clipboard
constructor(message: CoapMessage, reason: String)

Properties

Link copied to clipboard
open override val message: CoapMessage

The response as the layers above see it: decrypted for Verified, as it came for Unverified.

Link copied to clipboard

why it is unverified, for logs.

Functions

Link copied to clipboard
open override fun toString(): String