# media-cloud-sync/1.4.2/includes/sdk/s3/Aws/Credentials/CredentialsInterface.php

Media Cloud Sync, version 1.4.2. 49 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/code/includes/sdk/s3/Aws/Credentials/CredentialsInterface.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/raw/includes/sdk/s3/Aws/Credentials/CredentialsInterface.php
- Modified: 2024-10-27T10:40:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/code/includes/sdk/s3/Aws/Credentials/CredentialsInterface.php#L10-L20`.

```php
<?php

namespace Dudlewebs\WPMCS\s3\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();
}

```
