Documentation

AbstractSignature
in package
implements SignatureInterface

AbstractYes

Table of Contents

Interfaces

SignatureInterface
Interface used to provide interchangeable strategies for signing requests using the various AWS signature protocols.

Methods

createPresignedUrl()  : string
Create a pre-signed URL
getTimestamp()  : int
Provides the timestamp used for the class (used for mocking PHP's time() function)

Methods

createPresignedUrl()

Create a pre-signed URL

public createPresignedUrl(RequestInterface $request, CredentialsInterface $credentials, mixed $expires) : string
Parameters
$request : RequestInterface

Request to sign

$credentials : CredentialsInterface

Credentials used to sign

$expires : mixed

The time at which the URL should expire. This can be a Unix timestamp, a PHP DateTime object, or a string that can be evaluated by strtotime

Tags
codeCoverageIgnore
Return values
string

getTimestamp()

Provides the timestamp used for the class (used for mocking PHP's time() function)

protected getTimestamp() : int
Return values
int

        
On this page

Search results