public function setTokenValidity($tokenValidity) {
        $tknVal = intval($tokenValidity);

        if (empty($tknVal)) {
            $tknVal = self::BASIC_VALIDITY;
        }

        $this->tokenValidity = intval($tknVal);
    }