diff options
author | Andrew Dolgov <[email protected]> | 2022-11-23 21:14:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-23 21:14:33 +0300 |
commit | 0c8af4992cb0f7589dcafaad65ada12753c64594 (patch) | |
tree | 18e83d068c3e7dd2499331de977782b382279396 /vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php |
initial
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php')
-rw-r--r-- | vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php b/vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php new file mode 100644 index 0000000..86fac9d --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/Credentials/CredentialsInterface.php @@ -0,0 +1,52 @@ +<?php +namespace Aws\Credentials; + +/** + * Provides access to the AWS credentials used for accessing AWS services: AWS + * access key ID, secret access key, and security token. These credentials are + * used to securely sign requests to AWS services. + */ +interface CredentialsInterface +{ + /** + * Returns the AWS access key ID for this credentials object. + * + * @return string + */ + public function getAccessKeyId(); + + /** + * Returns the AWS secret access key for this credentials object. + * + * @return string + */ + public function getSecretKey(); + + /** + * Get the associated security token if available + * + * @return string|null + */ + public function getSecurityToken(); + + /** + * Get the UNIX timestamp in which the credentials will expire + * + * @return int|null + */ + public function getExpiration(); + + /** + * Check if the credentials are expired + * + * @return bool + */ + public function isExpired(); + + /** + * Converts the credentials to an associative array. + * + * @return array + */ + public function toArray(); +} |