ServerMessageSecurity

Functions

Link copied to clipboard
abstract suspend fun unprotectRequest(request: CoapMessage, peer: Endpoint): UnprotectedRequest?

Verifies and decrypts request from peer. Returns null when the request does not use this kind of protection, so the stack processes it as a plain request, which only resources whose AccessPolicy (kcoap-coap's server) permits it reach (with message security configured, the default policy refuses it, ADR 0008).