Package-level declarations
Types
Link copied to clipboard
Gives the registration route the host application's authentication context of a call (S1.1, finding N1), for example the account principal the host's own authentication (a session, a bearer token, an enrollment grant) established for it. KSecureMessage does not authenticate accounts and does not interpret C; the server passes it unchanged to its dev.kreienbuehl.ksecuremessage.server.DeviceRegistrationAuthorizer.
Functions
Link copied to clipboard
fun <C : Any> Route.kSecureMessageRoutes(server: SecureMessageServer<C>, registrationContext: DeviceRegistrationContextExtractor<C>)
KSecureMessage HTTP API v1, see docs/prekey-publication.md and docs/server-authentication.md. The application must install ContentNegotiation with JSON. Routes only map HTTP to SecureMessageServer; authentication, validation, conflicts and atomicity live behind it.