The Directive on privacy and electronic communications is applicable, in principle, when the providers of electronic communication services are obliged by law to retain the data of their subscribers and to allow the public authorities access to that data, irrespective of whether those obligations are imposed on national security grounds