__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\HeaderCheckerManagerFactory;
use Jose\Component\Encryption\Serializer\JWESerializerManagerFactory;
class JWELoaderFactory
{
public function __construct(
private readonly JWESerializerManagerFactory $jweSerializerManagerFactory,
private readonly JWEDecrypterFactory $jweDecrypterFactory,
private readonly ?HeaderCheckerManagerFactory $headerCheckerManagerFactory
) {
}
/**
* Creates a JWELoader using the given serializer aliases, encryption algorithm aliases, compression method aliases
* and header checker aliases.
*/
public function create(
array $serializers,
array $encryptionAlgorithms,
null|array $contentEncryptionAlgorithms = null,
null|array $compressionMethods = null,
array $headerCheckers = []
): JWELoader {
if ($contentEncryptionAlgorithms !== null) {
$encryptionAlgorithms = array_merge($encryptionAlgorithms, $contentEncryptionAlgorithms);
}
$serializerManager = $this->jweSerializerManagerFactory->create($serializers);
$jweDecrypter = $this->jweDecrypterFactory->create($encryptionAlgorithms, null, $compressionMethods);
if ($this->headerCheckerManagerFactory !== null) {
$headerCheckerManager = $this->headerCheckerManagerFactory->create($headerCheckers);
} else {
$headerCheckerManager = null;
}
return new JWELoader($serializerManager, $jweDecrypter, $headerCheckerManager);
}
}
| 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 |
|