Credentials
in package
FinalYes
Amazon Web Services credentials for API authentication.
Table of Contents
Properties
- $accessKeyId : string
- The access key ID that identifies the temporary security credentials.
- $expiration : DateTimeImmutable
- The date on which the current credentials expire.
- $secretAccessKey : string
- The secret access key that can be used to sign requests.
- $sessionToken : string
- The token that users must pass to the service API to use the temporary credentials.
Methods
- __construct() : mixed
- create() : self
- getAccessKeyId() : string
- getExpiration() : DateTimeImmutable
- getSecretAccessKey() : string
- getSessionToken() : string
- throwException() : never
Properties
$accessKeyId
The access key ID that identifies the temporary security credentials.
private
string
$accessKeyId
$expiration
The date on which the current credentials expire.
private
DateTimeImmutable
$expiration
$secretAccessKey
The secret access key that can be used to sign requests.
private
string
$secretAccessKey
$sessionToken
The token that users must pass to the service API to use the temporary credentials.
private
string
$sessionToken
Methods
__construct()
public
__construct(DateTimeImmutable} $input) : mixed
Parameters
- $input : DateTimeImmutable}
create()
public
static create(DateTimeImmutable}|Credentials $input) : self
Parameters
- $input : DateTimeImmutable}|Credentials
Return values
selfgetAccessKeyId()
public
getAccessKeyId() : string
Return values
stringgetExpiration()
public
getExpiration() : DateTimeImmutable
Return values
DateTimeImmutablegetSecretAccessKey()
public
getSecretAccessKey() : string
Return values
stringgetSessionToken()
public
getSessionToken() : string
Return values
stringthrowException()
private
throwException(Throwable $exception) : never
Parameters
- $exception : Throwable