authenticate

suspend fun authenticate(address: DeviceAddress, endpoint: ProtectedEndpoint, body: ByteArray, authentication: RequestAuthentication?): AuthenticatedDevice

Authenticates a request of the registered device address for endpoint whose HTTP body was exactly body. Throws DeviceAuthenticationException.