All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
37 lines
641 B
PHP
37 lines
641 B
PHP
<?php
|
|
namespace Aws\Token;
|
|
|
|
/**
|
|
* Provides access to an AWS token used for accessing AWS services
|
|
*/
|
|
interface TokenInterface
|
|
{
|
|
/**
|
|
* Returns the token this token object.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getToken();
|
|
|
|
/**
|
|
* Get the UNIX timestamp in which the token will expire
|
|
*
|
|
* @return int|null
|
|
*/
|
|
public function getExpiration();
|
|
|
|
/**
|
|
* Check if the token are expired
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isExpired();
|
|
|
|
/**
|
|
* Converts the token to an associative array.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function toArray();
|
|
}
|