private function getKeyEncryptionAlgorithm(array $complete_headers)
{
$key_encryption_algorithm = $this->getJWAManager()->getAlgorithm($complete_headers['alg']);
Assertion::isInstanceOf($key_encryption_algorithm, Algorithm\KeyEncryptionAlgorithmInterface::class, sprintf('The key encryption algorithm "%s" is not supported or does not implement KeyEncryptionAlgorithmInterface.', $complete_headers['alg']));
return $key_encryption_algorithm;
}