A Context-centric Security Middleware for Service provisioning in Pervasive Computing