One Train for Two Tasks: An Encrypted Traffic Classification Framework Using Supervised Contrastive Learning