Jose\Encrypter::getEncryptedKeyFromKeyAgreementAndKeyWrappingAlgorithm PHP Method

getEncryptedKeyFromKeyAgreementAndKeyWrappingAlgorithm() private method

private getEncryptedKeyFromKeyAgreementAndKeyWrappingAlgorithm ( array $complete_headers, string $cek, Jose\Algorithm\KeyEncryption\KeyAgreementWrappingInterface $key_encryption_algorithm, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, array &$additional_headers, Jose\Object\JWKInterface $recipient_key ) : string
$complete_headers array
$cek string
$key_encryption_algorithm Jose\Algorithm\KeyEncryption\KeyAgreementWrappingInterface
$content_encryption_algorithm Jose\Algorithm\ContentEncryptionAlgorithmInterface
$additional_headers array
$recipient_key Jose\Object\JWKInterface
return string
    private function getEncryptedKeyFromKeyAgreementAndKeyWrappingAlgorithm(array $complete_headers, $cek, Algorithm\KeyEncryption\KeyAgreementWrappingInterface $key_encryption_algorithm, Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, array &$additional_headers, Object\JWKInterface $recipient_key)
    {
        $jwt_cek = $key_encryption_algorithm->wrapAgreementKey($recipient_key, $cek, $content_encryption_algorithm->getCEKSize(), $complete_headers, $additional_headers);
        return $jwt_cek;
    }