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

Public Member Functions

 __construct ($consumerSecret, $tokenSecret=null, $hashAlgo=null)
 Constructor.
 
 sign (array $params, $method=null, $url=null)
 Sign a request.
 
 normaliseBaseSignatureUrl ($url)
 Normalize the base signature URL.
 

Protected Member Functions

 _assembleKey ()
 Assemble key from consumer and token secrets.
 
 _getBaseSignatureString (array $params, $method=null, $url=null)
 Get base signature string.
 
 _toByteValueOrderedQueryString (array $params)
 Transform an array to a byte value ordered query string.
 

Protected Attributes

 $_hashAlgorithm = null
 
 $_key = null
 
 $_consumerSecret = null
 
 $_tokenSecret = ''
 

Constructor & Destructor Documentation

__construct (   $consumerSecret,
  $tokenSecret = null,
  $hashAlgo = null 
)

Constructor.

Parameters
string$consumerSecret
null | string$tokenSecret
null | string$hashAlgo
Returns
void

Member Function Documentation

_assembleKey ( )
protected

Assemble key from consumer and token secrets.

Returns
string
_getBaseSignatureString ( array  $params,
  $method = null,
  $url = null 
)
protected

Get base signature string.

Parameters
array$params
null | string$method
null | string$url
Returns
string
_toByteValueOrderedQueryString ( array  $params)
protected

Transform an array to a byte value ordered query string.

Parameters
array$params
Returns
string
normaliseBaseSignatureUrl (   $url)

Normalize the base signature URL.

Parameters
string$url
Returns
string
sign ( array  $params,
  $method = null,
  $url = null 
)
abstract

Sign a request.

Parameters
array$params
null | string$method
null | string$url
Returns
string

Member Data Documentation

$_consumerSecret = null
protected
$_hashAlgorithm = null
protected
$_key = null
protected
$_tokenSecret = ''
protected