A Distributed Access Control Scheme based on Risk and Trust for Fog-cloud Environments