SDK for PHP 3.x

CredentialsInterface
in

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.

Table of Contents

Methods

getAccessKeyId()  : string
Returns the AWS access key ID for this credentials object.
getExpiration()  : int|null
Get the UNIX timestamp in which the credentials will expire
getSecretKey()  : string
Returns the AWS secret access key for this credentials object.
getSecurityToken()  : string|null
Get the associated security token if available
isExpired()  : bool
Check if the credentials are expired
toArray()  : array<string|int, mixed>
Converts the credentials to an associative array.

Methods

getAccessKeyId()

Returns the AWS access key ID for this credentials object.

public getAccessKeyId() : string
Return values
string

getExpiration()

Get the UNIX timestamp in which the credentials will expire

public getExpiration() : int|null
Return values
int|null

getSecretKey()

Returns the AWS secret access key for this credentials object.

public getSecretKey() : string
Return values
string

getSecurityToken()

Get the associated security token if available

public getSecurityToken() : string|null
Return values
string|null

isExpired()

Check if the credentials are expired

public isExpired() : bool
Return values
bool

toArray()

Converts the credentials to an associative array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page