authorization ( $datetime )

Generates the authorization string to use for the request.

Access

protected

Parameters

Parameter

Type

Required

Description

$datetime

string

Required

The current timestamp.

Returns

Type

Description

string

The authorization string.

Source

Method defined in authentication/signature_v4query.class.php | Toggle source view (11 lines) | View on GitHub

protected function authorization($datetime)
{
    $access_key_id = $this->key;

    $parts = array();
    $parts[] = "AWS4-HMAC-SHA256 Credential=${access_key_id}/" . $this->credential_string($datetime);
    $parts[] = 'SignedHeaders=' . implode(';', $this->signed_headers);
    $parts[] = 'Signature=' . $this->hex16($this->signature($datetime));

    return implode(',', $parts);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback