| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Credentials; |
| 4 |
|
| 5 |
/** |
| 6 |
* Provides access to the AWS credentials used for accessing AWS services: AWS |
| 7 |
* access key ID, secret access key, and security token. These credentials are |
| 8 |
* used to securely sign requests to AWS services. |
| 9 |
*/ |
| 10 |
interface CredentialsInterface |
| 11 |
{ |
| 12 |
/** |
| 13 |
* Returns the AWS access key ID for this credentials object. |
| 14 |
* |
| 15 |
* @return string |
| 16 |
*/ |
| 17 |
public function getAccessKeyId(); |
| 18 |
/** |
| 19 |
* Returns the AWS secret access key for this credentials object. |
| 20 |
* |
| 21 |
* @return string |
| 22 |
*/ |
| 23 |
public function getSecretKey(); |
| 24 |
/** |
| 25 |
* Get the associated security token if available |
| 26 |
* |
| 27 |
* @return string|null |
| 28 |
*/ |
| 29 |
public function getSecurityToken(); |
| 30 |
/** |
| 31 |
* Get the UNIX timestamp in which the credentials will expire |
| 32 |
* |
| 33 |
* @return int|null |
| 34 |
*/ |
| 35 |
public function getExpiration(); |
| 36 |
/** |
| 37 |
* Check if the credentials are expired |
| 38 |
* |
| 39 |
* @return bool |
| 40 |
*/ |
| 41 |
public function isExpired(); |
| 42 |
/** |
| 43 |
* Converts the credentials to an associative array. |
| 44 |
* |
| 45 |
* @return array |
| 46 |
*/ |
| 47 |
public function toArray(); |
| 48 |
} |
| 49 |
|