SDK for PHP 3.x

TokenInterface
in

Provides access to an AWS token used for accessing AWS services

Table of Contents

Methods

getExpiration()  : int|null
Get the UNIX timestamp in which the token will expire
getToken()  : string
Returns the token this token object.
isExpired()  : bool
Check if the token are expired
toArray()  : array<string|int, mixed>
Converts the token to an associative array.

Methods

getExpiration()

Get the UNIX timestamp in which the token will expire

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

getToken()

Returns the token this token object.

public getToken() : string
Return values
string

isExpired()

Check if the token are expired

public isExpired() : bool
Return values
bool

toArray()

Converts the token to an associative array.

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