mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
43 lines
949 B
PHP
43 lines
949 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package phpOMS\Auth\OAuth2\Token
|
|
* @copyright Dennis Eichhorn
|
|
* @copyright MIT - Copyright (c) 2013-2018 Alex Bilbie <hello@alexbilbie.com> - thephpleague/oauth2-client
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
* @see https://tools.ietf.org/html/rfc6749
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Auth\OAuth2\Token;
|
|
|
|
/**
|
|
* Provider class.
|
|
*
|
|
* @package phpOMS\Auth\OAuth2\Token
|
|
* @license OMS License 1.0
|
|
* @link https://orange-management.org
|
|
* @since 1.0.0
|
|
*/
|
|
interface AccessTokenInterface extends \JsonSerializable
|
|
{
|
|
public function getToken() : string;
|
|
|
|
public function getRefreshToken() : ?string;
|
|
|
|
public function getExpires() : int;
|
|
|
|
public function hasExpired() : bool;
|
|
|
|
public function getValues() : array;
|
|
|
|
public function __toString();
|
|
|
|
public function jsonSerialize();
|
|
}
|