1. An apparatus comprising:a communication control unit configured to control encrypted communication; and
a print control unit configured to control print processing,
wherein, in a case where an encrypted common key is decrypted, the communication control unit is assigned with a first priority, and the print control unit is assigned with a second priority higher than the first priority, and
wherein resource distribution of the with respect to the communication control unit and the print control unit is determined according to the priorities.