CoreFiles by mySites.guru
Serializer.php24 lines, 546 bytes, from Joomla_4.4.14-Stable-Full_Package.zip
Raw History Compare with 4.4.13
md5
bd79140608393c3176d3edf6bf3ae1e8
sha1
b6ad14d02179d7ef27d0e39697e6050916cb883a
sha256
2eadbb660274a828438e6d22b699a4875f6690f0678e55f12a0521c0b74a587c
<?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2020 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Jose\Component\Signature\Serializer;

use function array_key_exists;

abstract class Serializer implements JWSSerializer
{
    protected function isPayloadEncoded(array $protectedHeader): bool
    {
        return !array_key_exists('b64', $protectedHeader) || true === $protectedHeader['b64'];
    }
}

The same content is in 75 releases, Joomla 4.2.0-beta3 to 4.4.14. See them all, or every version of this file.