CoreFiles by mySites.guru
AlgorithmAnalyzer.php17 lines, 367 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
f49da5413fb5921479b38433b98d7364
sha1
2d94b4417086d46e08ac6b4d7146851e276fd374
sha256
e4f7ccca67c148b3081221ae826002a809ce2334feafd1f1fff87b3d0c1b9023
<?php

declare(strict_types=1);

namespace Jose\Component\KeyManagement\Analyzer;

use Jose\Component\Core\JWK;

final class AlgorithmAnalyzer implements KeyAnalyzer
{
    public function analyze(JWK $jwk, MessageBag $bag): void
    {
        if (! $jwk->has('alg')) {
            $bag->add(Message::medium('The parameter "alg" should be added.'));
        }
    }
}

The same content is in 135 releases, Joomla 5.1.0-beta1 to 6.2.1. See them all, or every version of this file.