SecurityRejected

class SecurityRejected(val peer: Endpoint, val reason: EndpointEvent.SecurityRejected.Reason, val responseCode: CoapCode, val error: MessageSecurityException? = null) : EndpointEvent(source)

Message security on a CoapServer did not let a request from peer reach a resource, for reason, and answered it with responseCode. Its RequestCompleted follows. error is what the security layer threw for a request that failed verification; with kcoap-oscore its cause is the OscoreException, whose OscoreError can be counted.

Constructors

Link copied to clipboard
constructor(peer: Endpoint, reason: EndpointEvent.SecurityRejected.Reason, responseCode: CoapCode, error: MessageSecurityException? = null)

Types

Link copied to clipboard

Why message security stopped a request. New reasons may be added before 1.0; use an else branch.

Properties

Link copied to clipboard
Link copied to clipboard
open override val peer: Endpoint

The peer the event concerns.

Link copied to clipboard
Link copied to clipboard

Functions

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