Jose\Decrypter::getContentEncryptionAlgorithm PHP Method

getContentEncryptionAlgorithm() private method

private getContentEncryptionAlgorithm ( array $complete_headers ) : Jose\Algorithm\ContentEncryptionAlgorithmInterface
$complete_headers array
return Jose\Algorithm\ContentEncryptionAlgorithmInterface
    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;
    }