string_to_sign ( $datetime )

Calculate the string to sign.

Access

protected

Parameters

Parameter

Type

Required

Description

$datetime

string

Required

The current timestamp.

Returns

Type

Description

string

The string to sign.

Source

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

protected function string_to_sign($datetime)
{
    $parts = array();
    $parts[] = 'AWS4-HMAC-SHA256';
    $parts[] = $datetime;
    $parts[] = $this->credential_string($datetime);
    $parts[] = $this->hex16($this->hash($this->canonical_request()));

    $this->string_to_sign = implode("\n", $parts);

    return $this->string_to_sign;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback