__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 InvalidArgumentException;
use function array_key_exists;
/**
* @internal
*/
final class Recipient
{
public function __construct(
private readonly array $header,
private readonly ?string $encryptedKey
) {
}
/**
* Returns the recipient header.
*/
public function getHeader(): array
{
return $this->header;
}
/**
* Returns the value of the recipient header parameter with the specified key.
*
* @param string $key The key
*
* @return mixed|null
*/
public function getHeaderParameter(string $key)
{
if (! $this->hasHeaderParameter($key)) {
throw new InvalidArgumentException(sprintf('The header "%s" does not exist.', $key));
}
return $this->header[$key];
}
/**
* Returns true if the recipient header contains the parameter with the specified key.
*
* @param string $key The key
*/
public function hasHeaderParameter(string $key): bool
{
return array_key_exists($key, $this->header);
}
/**
* Returns the encrypted key.
*/
public function getEncryptedKey(): ?string
{
return $this->encryptedKey;
}
}
| 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 |
|