| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Token; |
| 4 |
|
| 5 |
/** |
| 6 |
* Provides access to an AWS token used for accessing AWS services |
| 7 |
*/ |
| 8 |
interface TokenInterface |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Returns the token this token object. |
| 12 |
* |
| 13 |
* @return string |
| 14 |
*/ |
| 15 |
public function getToken(); |
| 16 |
/** |
| 17 |
* Get the UNIX timestamp in which the token will expire |
| 18 |
* |
| 19 |
* @return int|null |
| 20 |
*/ |
| 21 |
public function getExpiration(); |
| 22 |
/** |
| 23 |
* Check if the token are expired |
| 24 |
* |
| 25 |
* @return bool |
| 26 |
*/ |
| 27 |
public function isExpired(); |
| 28 |
/** |
| 29 |
* Converts the token to an associative array. |
| 30 |
* |
| 31 |
* @return array |
| 32 |
*/ |
| 33 |
public function toArray(); |
| 34 |
} |
| 35 |
|