__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Core\AlgorithmManagerFactory;
use Jose\Component\Encryption\Compression\CompressionMethodManagerFactory;
class JWEDecrypterFactory
{
public function __construct(
private readonly AlgorithmManagerFactory $algorithmManagerFactory,
private readonly null|CompressionMethodManagerFactory $compressionMethodManagerFactory = null
) {
if ($compressionMethodManagerFactory !== null) {
trigger_deprecation(
'web-token/jwt-library',
'3.3.0',
'The parameter "$compressionMethodManagerFactory" is deprecated and will be removed in 4.0.0. Compression is not recommended for JWE. Please set "null" instead.'
);
}
}
/**
* Creates a JWE Decrypter object using the given key encryption algorithms, content encryption algorithms and
* compression methods.
*
* @param string[] $encryptionAlgorithms
* @param null|string[] $contentEncryptionAlgorithms
* @param null|string[] $compressionMethods
*/
public function create(
array $encryptionAlgorithms,
null|array $contentEncryptionAlgorithms = null,
null|array $compressionMethods = null
): JWEDecrypter {
if ($contentEncryptionAlgorithms !== null) {
$encryptionAlgorithms = array_merge($encryptionAlgorithms, $contentEncryptionAlgorithms);
}
$algorithmManager = $this->algorithmManagerFactory->create($encryptionAlgorithms);
$compressionMethodManager = $compressionMethods === null ? null : $this->compressionMethodManagerFactory?->create(
$compressionMethods
);
return new JWEDecrypter($algorithmManager, null, $compressionMethodManager);
}
}
| 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 |
|