!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/jiff/vendor/tymon/jwt-auth/src/Validators/   drwxr-xr-x
Free 13.14 GB of 57.97 GB (22.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PayloadValidator.php (2.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of jwt-auth.
 *
 * (c) Sean Tymon <tymon148@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tymon\JWTAuth\Validators;

use 
Tymon\JWTAuth\Claims\Collection;
use 
Tymon\JWTAuth\Exceptions\TokenInvalidException;

class 
PayloadValidator extends Validator
{
    
/**
     * The required claims.
     *
     * @var array
     */
    
protected $requiredClaims = [
        
'iss',
        
'iat',
        
'exp',
        
'nbf',
        
'sub',
        
'jti',
    ];

    
/**
     * The refresh TTL.
     *
     * @var int
     */
    
protected $refreshTTL 20160;

    
/**
     * Run the validations on the payload array.
     *
     * @param  \Tymon\JWTAuth\Claims\Collection  $value
     * @return \Tymon\JWTAuth\Claims\Collection
     */
    
public function check($value)
    {
        
$this->validateStructure($value);

        return 
$this->refreshFlow $this->validateRefresh($value) : $this->validatePayload($value);
    }

    
/**
     * Ensure the payload contains the required claims and
     * the claims have the relevant type.
     *
     * @param  \Tymon\JWTAuth\Claims\Collection  $claims
     * @return void
     *
     * @throws \Tymon\JWTAuth\Exceptions\TokenInvalidException
     */
    
protected function validateStructure(Collection $claims)
    {
        if (
$this->requiredClaims && ! $claims->hasAllClaims($this->requiredClaims)) {
            throw new 
TokenInvalidException('JWT payload does not contain the required claims');
        }
    }

    
/**
     * Validate the payload timestamps.
     *
     * @param  \Tymon\JWTAuth\Claims\Collection  $claims
     * @return \Tymon\JWTAuth\Claims\Collection
     *
     * @throws \Tymon\JWTAuth\Exceptions\TokenExpiredException
     * @throws \Tymon\JWTAuth\Exceptions\TokenInvalidException
     */
    
protected function validatePayload(Collection $claims)
    {
        return 
$claims->validate('payload');
    }

    
/**
     * Check the token in the refresh flow context.
     *
     * @param  \Tymon\JWTAuth\Claims\Collection  $claims
     * @return \Tymon\JWTAuth\Claims\Collection
     *
     * @throws \Tymon\JWTAuth\Exceptions\TokenExpiredException
     */
    
protected function validateRefresh(Collection $claims)
    {
        return 
$this->refreshTTL === null $claims $claims->validate('refresh'$this->refreshTTL);
    }

    
/**
     * Set the required claims.
     *
     * @param  array  $claims
     * @return $this
     */
    
public function setRequiredClaims(array $claims)
    {
        
$this->requiredClaims $claims;

        return 
$this;
    }

    
/**
     * Set the refresh ttl.
     *
     * @param  int  $ttl
     * @return $this
     */
    
public function setRefreshTTL($ttl)
    {
        
$this->refreshTTL $ttl;

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--