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)