✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.223
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/auth//Token.php
<?php
/**
 * Class Google\Site_Kit\Core\Authentication\Token
 *
 * @package   Google\Site_Kit
 * @copyright 2021 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Core\Authentication;

use Google\Site_Kit\Core\Storage\User_Options;
use Google\Site_Kit\Core\Storage\Encrypted_User_Options;
use Google\Site_Kit\Core\Authentication\Clients\OAuth_Client;

/**
 * Class representing the OAuth token for a user.
 *
 * This includes the access token, its creation and expiration data, and the refresh token.
 * This class is compatible with `Google\Site_Kit\Core\Storage\User_Setting`, as it should in the future be adjusted
 * so that the four pieces of data become a single user setting.
 *
 * @since 1.39.0
 * @access private
 * @ignore
 */
final class Token {

	/**
	 * User_Options instance.
	 *
	 * @since 1.39.0
	 * @var User_Options
	 */
	protected $user_options;

	/**
	 * Encrypted_User_Options instance.
	 *
	 * @since 1.39.0
	 * @var Encrypted_User_Options
	 */
	private $encrypted_user_options;

	/**
	 * Constructor.
	 *
	 * @since 1.39.0
	 *
	 * @param User_Options $user_options User_Options instance.
	 */
	public function __construct( User_Options $user_options ) {
		$this->user_options           = $user_options;
		$this->encrypted_user_options = new Encrypted_User_Options( $this->user_options );
	}

	/**
	 * Checks whether or not the setting exists.
	 *
	 * @since 1.39.0
	 *
	 * @return bool True on success, false on failure.
	 */
	public function has() {
		if ( ! $this->get() ) {
			return false;
		}

		return true;
	}

	/**
	 * Gets the value of the setting.
	 *
	 * @since 1.39.0
	 *
	 * @return mixed Value set for the option, or default if not set.
	 */
	public function get() {
		$access_token = $this->encrypted_user_options->get( OAuth_Client::OPTION_ACCESS_TOKEN );
		if ( empty( $access_token ) ) {
			return array();
		}

		$token = array(
			'access_token' => $access_token,
			'expires_in'   => (int) $this->user_options->get( OAuth_Client::OPTION_ACCESS_TOKEN_EXPIRES_IN ),
			'created'      => (int) $this->user_options->get( OAuth_Client::OPTION_ACCESS_TOKEN_CREATED ),
		);

		$refresh_token = $this->encrypted_user_options->get( OAuth_Client::OPTION_REFRESH_TOKEN );
		if ( ! empty( $refresh_token ) ) {
			$token['refresh_token'] = $refresh_token;
		}

		return $token;
	}

	/**
	 * Sets the value of the setting with the given value.
	 *
	 * @since 1.39.0
	 *
	 * @param mixed $value Setting value. Must be serializable if non-scalar.
	 *
	 * @return bool True on success, false on failure.
	 */
	public function set( $value ) {
		if ( empty( $value['access_token'] ) ) {
			return false;
		}

		// Use reasonable defaults for these fields.
		if ( empty( $value['expires_in'] ) ) {
			$value['expires_in'] = HOUR_IN_SECONDS;
		}
		if ( empty( $value['created'] ) ) {
			$value['created'] = time();
		}

		$this->encrypted_user_options->set( OAuth_Client::OPTION_ACCESS_TOKEN, $value['access_token'] );
		$this->user_options->set( OAuth_Client::OPTION_ACCESS_TOKEN_EXPIRES_IN, $value['expires_in'] );
		$this->user_options->set( OAuth_Client::OPTION_ACCESS_TOKEN_CREATED, $value['created'] );

		if ( ! empty( $value['refresh_token'] ) ) {
			$this->encrypted_user_options->set( OAuth_Client::OPTION_REFRESH_TOKEN, $value['refresh_token'] );
		}

		return true;
	}

	/**
	 * Deletes the setting.
	 *
	 * @since 1.39.0
	 *
	 * @return bool True on success, false on failure.
	 */
	public function delete() {
		$this->user_options->delete( OAuth_Client::OPTION_ACCESS_TOKEN );
		$this->user_options->delete( OAuth_Client::OPTION_ACCESS_TOKEN_EXPIRES_IN );
		$this->user_options->delete( OAuth_Client::OPTION_ACCESS_TOKEN_CREATED );
		$this->user_options->delete( OAuth_Client::OPTION_REFRESH_TOKEN );
		return true;
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
23 Sep 2026 5.57 AM
docteuh / users
0777
01
--
23 Sep 2026 1.20 AM
docteuh / users
0755
Authentication
--
15 Sep 2026 3.44 AM
docteuh / users
0755
Service
--
18 Sep 2026 11.14 AM
docteuh / users
0755
apiclient
--
20 Sep 2026 7.40 PM
docteuh / users
0755
application
--
16 Sep 2026 1.10 PM
docteuh / users
0755
cgi-bin
--
18 Sep 2026 3.13 AM
docteuh / users
0755
conditionals
--
16 Sep 2026 7.59 PM
docteuh / users
0755
config-wp-temp
--
9 Sep 2026 4.31 PM
docteuh / users
0755
endpoints
--
20 Sep 2026 8.55 PM
docteuh / users
0755
infrastructure
--
12 Sep 2026 4.18 PM
docteuh / users
0755
markdown
--
22 Sep 2026 8.54 AM
docteuh / users
0755
oauth
--
19 Sep 2026 2.20 PM
docteuh / users
0755
options
--
16 Sep 2026 1.43 PM
docteuh / users
0755
polyfill-php72
--
12 Sep 2026 1.03 AM
docteuh / users
0755
search-api
--
31 Aug 2026 6.15 PM
docteuh / users
0755
third-party
--
20 Sep 2026 7.37 PM
docteuh / users
0755
user-interface
--
20 Sep 2026 7.41 PM
docteuh / users
0755
watchers
--
22 Sep 2026 12.43 AM
docteuh / users
0755
COPYING
11.076 KB
6 Dec 2023 8.16 PM
docteuh / users
0644
Middleware.php
11.089 KB
23 Jun 2026 6.20 PM
docteuh / users
0644
Token.php
3.781 KB
6 Dec 2023 8.16 PM
docteuh / users
0644
autoload.php
1.135 KB
6 Dec 2023 8.16 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260828192629.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103225-20260831111900-20260901204506.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260829050506-20260830003632-20260830003701-20260830003856-20260831163243.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260831001055.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
license.txt
0.067 KB
5 Sep 2026 8.41 AM
docteuh / users
0644
performance.php
29.365 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
privacy.php
2.787 KB
21 May 2026 2.34 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF