Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Service_Amazon_Authentication_V2 Class Reference

Public Member Functions

 generateSignature ($url, array &$parameters)
 Generate the required attributes for the signature.
 
 setHttpMethod ($method="POST")
 Set http request type to POST or GET.
 
 getHttpMethod ()
 Get the current http request type.
 
- Public Member Functions inherited from Zend_Service_Amazon_Authentication
 __construct ($accessKey, $secretKey, $apiVersion)
 Constructor.
 
 setAccessKey ($accessKey)
 Set access key.
 
 setSecretKey ($secretKey)
 Set secret key.
 
 setApiVersion ($apiVersion)
 Set API version.
 

Protected Member Functions

 _signParameters ($url, array &$paramaters)
 Computes the RFC 2104-compliant HMAC signature for request parameters.
 

Protected Attributes

 $_signatureVersion = '2'
 Signature Version.
 
 $_signatureMethod = 'HmacSHA256'
 Signature Encoding Method.
 
 $_httpMethod = "POST"
 
- Protected Attributes inherited from Zend_Service_Amazon_Authentication
 $_accessKey
 
 $_secretKey
 
 $_apiVersion
 

Member Function Documentation

_signParameters (   $url,
array &  $paramaters 
)
protected

Computes the RFC 2104-compliant HMAC signature for request parameters.

This implements the Amazon Web Services signature, as per the following specification:

1. Sort all request parameters (including SignatureVersion and excluding Signature, the value of which is being created), ignoring case.

2. Iterate over the sorted list and append the parameter name (in its original case) and then its value. Do not URL-encode the parameter values before constructing this string. Do not use any separator characters when appending strings.

Parameters
string$queue_urlQueue URL
array$parametersthe parameters for which to get the signature.
Returns
string the signed data.
generateSignature (   $url,
array &  $parameters 
)

Generate the required attributes for the signature.

Parameters
string$url
array$parameters
Returns
string
getHttpMethod ( )

Get the current http request type.

Returns
string
setHttpMethod (   $method = "POST")

Set http request type to POST or GET.

Parameters
string$method

Member Data Documentation

$_httpMethod = "POST"
protected
$_signatureMethod = 'HmacSHA256'
protected

Signature Encoding Method.

$_signatureVersion = '2'
protected

Signature Version.