File manager - Edit - /home/opticamezl/www/newok/Token.tar
Back
RegisteredClaims.php 0000644 00000003403 15175324740 0010513 0 ustar 00 <?php namespace Lcobucci\JWT\Token; /** * Defines the list of claims that are registered in the IANA "JSON Web Token Claims" registry * * @see https://tools.ietf.org/html/rfc7519#section-4.1 */ interface RegisteredClaims { const ALL = [ self::AUDIENCE, self::EXPIRATION_TIME, self::ID, self::ISSUED_AT, self::ISSUER, self::NOT_BEFORE, self::SUBJECT, ]; const DATE_CLAIMS = [ self::ISSUED_AT, self::NOT_BEFORE, self::EXPIRATION_TIME, ]; /** * Identifies the recipients that the JWT is intended for * * @see https://tools.ietf.org/html/rfc7519#section-4.1.3 */ const AUDIENCE = 'aud'; /** * Identifies the expiration time on or after which the JWT MUST NOT be accepted for processing * * @see https://tools.ietf.org/html/rfc7519#section-4.1.4 */ const EXPIRATION_TIME = 'exp'; /** * Provides a unique identifier for the JWT * * @see https://tools.ietf.org/html/rfc7519#section-4.1.7 */ const ID = 'jti'; /** * Identifies the time at which the JWT was issued * * @see https://tools.ietf.org/html/rfc7519#section-4.1.6 */ const ISSUED_AT = 'iat'; /** * Identifies the principal that issued the JWT * * @see https://tools.ietf.org/html/rfc7519#section-4.1.1 */ const ISSUER = 'iss'; /** * Identifies the time before which the JWT MUST NOT be accepted for processing * * https://tools.ietf.org/html/rfc7519#section-4.1.5 */ const NOT_BEFORE = 'nbf'; /** * Identifies the principal that is the subject of the JWT. * * https://tools.ietf.org/html/rfc7519#section-4.1.2 */ const SUBJECT = 'sub'; } Plain.php 0000644 00000000247 15175324740 0006333 0 ustar 00 <?php namespace Lcobucci\JWT\Token; use Lcobucci\JWT\Token; use function class_alias; class_exists(Plain::class, false) || class_alias(Token::class, Plain::class); RegisteredClaimGiven.php 0000644 00000001113 15175324740 0011315 0 ustar 00 <?php namespace Lcobucci\JWT\Token; use InvalidArgumentException; use Lcobucci\JWT\Exception; use function sprintf; final class RegisteredClaimGiven extends InvalidArgumentException implements Exception { const DEFAULT_MESSAGE = 'Builder#withClaim() is meant to be used for non-registered claims, ' . 'check the documentation on how to set claim "%s"'; /** * @param string $name * * @return self */ public static function forClaim($name) { return new self(sprintf(self::DEFAULT_MESSAGE, $name)); } } Signature.php 0000644 00000000314 15175324740 0007224 0 ustar 00 <?php namespace Lcobucci\JWT\Token; use Lcobucci\JWT\Signature as SignatureImpl; use function class_alias; class_exists(Signature::class, false) || class_alias(SignatureImpl::class, Signature::class); DataSet.php 0000644 00000002027 15175324740 0006613 0 ustar 00 <?php namespace Lcobucci\JWT\Token; use function array_key_exists; final class DataSet { /** @var array<string, mixed> */ private $data; /** @var string */ private $encoded; /** * @param array<string, mixed> $data * @param string $encoded */ public function __construct(array $data, $encoded) { $this->data = $data; $this->encoded = $encoded; } /** * @param string $name * @param mixed|null $default * * @return mixed|null */ public function get($name, $default = null) { return $this->has($name) ? $this->data[$name] : $default; } /** * @param string $name * * @return bool */ public function has($name) { return array_key_exists($name, $this->data); } /** @return array<string, mixed> */ public function all() { return $this->data; } /** @return string */ public function toString() { return $this->encoded; } } InvalidTokenStructure.php 0000644 00000001353 15175324740 0011577 0 ustar 00 <?php namespace Lcobucci\JWT\Token; use InvalidArgumentException; use Lcobucci\JWT\Exception; final class InvalidTokenStructure extends InvalidArgumentException implements Exception { /** @return self */ public static function missingOrNotEnoughSeparators() { return new self('The JWT string must have two dots'); } /** * @param string $part * * @return self */ public static function arrayExpected($part) { return new self($part . ' must be an array'); } /** * @param string $value * * @return self */ public static function dateIsNotParseable($value) { return new self('Value is not in the allowed date format: ' . $value); } } UnsupportedHeaderFound.php 0000644 00000000506 15175324740 0011723 0 ustar 00 <?php namespace Lcobucci\JWT\Token; use InvalidArgumentException; use Lcobucci\JWT\Exception; final class UnsupportedHeaderFound extends InvalidArgumentException implements Exception { /** @return self */ public static function encryption() { return new self('Encryption is not supported yet'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings