public addRecipientWithEncryptedKey ( $encrypted_key, array $recipient_headers ) | ||
$recipient_headers | array |
public function addRecipientWithEncryptedKey($encrypted_key, array $recipient_headers)
{
$jwe = clone $this;
$jwe->recipients[] = Recipient::createRecipientFromLoadedJWE($recipient_headers, $encrypted_key);
return $jwe;
}