Provisioning Dynamic Security in User-Centric IoT Applications