first commit -> move some files from one-api
This commit is contained in:
36
vendor/aws_v3/Aws/Token/TokenInterface.php
vendored
Normal file
36
vendor/aws_v3/Aws/Token/TokenInterface.php
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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();
|
||||
}
|
||||
Reference in New Issue
Block a user