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