Jose\Decrypter::decryptPayload PHP Метод

decryptPayload() приватный Метод

private decryptPayload ( Jose\Object\JWEInterface &$jwe, string $cek, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, array $complete_headers ) : boolean
$jwe Jose\Object\JWEInterface
$cek string
$content_encryption_algorithm Jose\Algorithm\ContentEncryptionAlgorithmInterface
$complete_headers array
Результат boolean
    private function decryptPayload(Object\JWEInterface &$jwe, $cek, Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, array $complete_headers)
    {
        $payload = $content_encryption_algorithm->decryptContent($jwe->getCiphertext(), $cek, $jwe->getIV(), null === $jwe->getAAD() ? null : Base64Url::encode($jwe->getAAD()), $jwe->getEncodedSharedProtectedHeaders(), $jwe->getTag());
        if (null === $payload) {
            return false;
        }
        $this->decompressIfNeeded($payload, $complete_headers);
        $decoded = json_decode($payload, true);
        $jwe = $jwe->withPayload(null === $decoded ? $payload : $decoded);
        return true;
    }