Signature/LoadedJWS.php
private function checkExpiration()
    {
        if (!$this->hasLifetime) {
            return;
        }

        if (!isset($this->payload['exp']) || !is_numeric($this->payload['exp'])) {
            return $this->state = self::INVALID;
        }

        if ($this->clockSkew <= (new \DateTime())->format('U') - $this->payload['exp']) {
            $this->state = self::EXPIRED;
        }
    }
private function checkExpiration()
    {
        if (!$this->hasLifetime) {
            return;
        }

        if (!isset($this->payload['exp']) || !is_numeric($this->payload['exp'])) {
            return $this->state = self::INVALID;
        }

        if ($this->clockSkew <= (new \DateTime())->format('U') - $this->payload['exp']) {
            $this->state = self::EXPIRED;
        }
    }
private function checkExpiration ( ) { if ( ! $ this -> hasLifetime ) { return ; } if ( ! isset ( $ this -> payload [ 'exp' ] ) || ! is_numeric ( $ this -> payload [ 'exp' ] ) ) { return $ this -> state = self :: INVALID ; } if ( $ this -> clockSkew <= ( new \ DateTime ( ) ) -> format ( 'U' ) - $ this -> payload [ 'exp' ] ) { $ this -> state = self :: EXPIRED ; } }
Ensures that the signature is not expired.
Ensures that the signature is not expired .