Secure connection and restrict access for Activity.