->addRecipient($recipient_public_key_2,['description'=>'Nice song for you'])
8
->build();
Copied!
The variable $jwe will be a valid JWE object built for two recipients. The unprotected header parameter author is applicable to the whole token while message and description are available only for the first and second recipient respectively.
Note: when an unprotected header is set, the Compact Serialization mode is not available.