Файловый менеджер - Редактировать - /var/www/html/libraries/vendor/web-token/jwt-library/Signature/JWSTokenSupport.php
Ðазад
<?php declare(strict_types=1); namespace Jose\Component\Signature; use InvalidArgumentException; use Jose\Component\Checker\TokenTypeSupport; use Jose\Component\Core\JWT; final class JWSTokenSupport implements TokenTypeSupport { public function supports(JWT $jwt): bool { return $jwt instanceof JWS; } /** * @param array<string, mixed> $protectedHeader * @param array<string, mixed> $unprotectedHeader */ public function retrieveTokenHeaders(JWT $jwt, int $index, array &$protectedHeader, array &$unprotectedHeader): void { if (! $jwt instanceof JWS) { return; } if ($index > $jwt->countSignatures()) { throw new InvalidArgumentException('Unknown signature index.'); } $protectedHeader = $jwt->getSignature($index) ->getProtectedHeader(); $unprotectedHeader = $jwt->getSignature($index) ->getHeader(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка