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