A security framework for smart metering with multiple data consumers