credential_string ( $datetime )

Generates the credential string to use for signing.

Access

protected

Parameters

Parameter

Type

Required

Description

$datetime

string

Required

The current timestamp.

Returns

Type

Description

string

The credential string.

Source

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

protected function credential_string($datetime)
{
    $parts = array();
    $parts[] = substr($datetime, 0, 8);
    $parts[] = $this->region();
    $parts[] = $this->service();
    $parts[] = 'aws4_request';

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback