OscoreServer
class OscoreServer(contexts: SecurityContextRepository, loggerFactory: LoggerFactory = LoggerFactory.Global) : ServerMessageSecurity(source)
The OSCORE server side for the CoAP stack: verifies requests carrying the OSCORE option against the contexts in contexts and protects the responses. Each verified request carries its context's SecurityContext.identity. Requests without the option are left to the stack (null). On a server with message security its default access policy refuses them, so only the resources the application makes AccessPolicy.Public (kcoap-coap's server) serve them (ADR 0008).
Constructors
Link copied to clipboard
constructor(contexts: SecurityContextRepository, loggerFactory: LoggerFactory = LoggerFactory.Global)
Functions
Link copied to clipboard
open suspend override fun unprotectRequest(request: CoapMessage, peer: Endpoint): UnprotectedRequest?