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