Hackfut Security File Manager
Current Path:
/home/u126195517/domains/sonidrycleaners.com/vendor/firebase/php-jwt/src
home
/
u126195517
/
domains
/
sonidrycleaners.com
/
vendor
/
firebase
/
php-jwt
/
src
/
📁
..
📄
BeforeValidException.php
(357 B)
📄
CachedKeySet.php
(7.12 KB)
📄
ExpiredException.php
(353 B)
📄
JWK.php
(11.78 KB)
📄
JWT.php
(23.66 KB)
📄
JWTExceptionWithPayloadInterface.php
(396 B)
📄
Key.php
(1.29 KB)
📄
SignatureInvalidException.php
(102 B)
Editing: Key.php
<?php namespace Firebase\JWT; use InvalidArgumentException; use OpenSSLAsymmetricKey; use OpenSSLCertificate; use TypeError; class Key { /** * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial * @param string $algorithm */ public function __construct( private $keyMaterial, private string $algorithm ) { if ( !\is_string($keyMaterial) && !$keyMaterial instanceof OpenSSLAsymmetricKey && !$keyMaterial instanceof OpenSSLCertificate && !\is_resource($keyMaterial) ) { throw new TypeError('Key material must be a string, resource, or OpenSSLAsymmetricKey'); } if (empty($keyMaterial)) { throw new InvalidArgumentException('Key material must not be empty'); } if (empty($algorithm)) { throw new InvalidArgumentException('Algorithm must not be empty'); } } /** * Return the algorithm valid for this key * * @return string */ public function getAlgorithm(): string { return $this->algorithm; } /** * @return string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */ public function getKeyMaterial() { return $this->keyMaterial; } }
Upload File
Create Folder