Method for determining if an encrypted flow of packets belongs to a predefined class of flows