public getAgreementKey ( integer $encryption_key_length, string $algorithm, Jose\Object\JWKInterface $recipient_key, array $complete_header = [], array &$additional_header_values = [] ) : mixed | ||
$encryption_key_length | integer | Size of the key expected for the algorithm used for data encryption |
$algorithm | string | The algorithm |
$recipient_key | Jose\Object\JWKInterface | The recipient key. If the key is public, then an ephemeral private key will be created, else will try to find the ephemeral key in the header |
$complete_header | array | The complete header of the JWT |
$additional_header_values | array | Set additional header values if needed |
return | mixed |