lib/3rdParty/composer/web-token/jwt-library/KeyManagement/Analyzer/AlgorithmAnalyzer.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\KeyManagement\Analyzer; |
| 6 | |
| 7 | use Jose\Component\Core\JWK; |
| 8 | |
| 9 | final class AlgorithmAnalyzer implements KeyAnalyzer |
| 10 | { |
| 11 | public function analyze(JWK $jwk, MessageBag $bag): void |
| 12 | { |
| 13 | if (! $jwk->has('alg')) { |
| 14 | $bag->add(Message::medium('The parameter "alg" should be added.')); |
| 15 | } |
| 16 | } |
| 17 | } |