API Documentation

Oauth/Signature/SignatureAbstract.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Oauth  
version
$Id: SignatureAbstract.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Oauth_Signature_SignatureAbstract

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Oauth  

Properties

Propertyprotectedstring  $_consumerSecret= 'null'

Consumer secret

Default valuenullDetails
Type
string
Propertyprotectedstring  $_hashAlgorithm= 'null'

Hash algorithm to use when generating signature

Default valuenullDetails
Type
string
Propertyprotectedstring  $_key= 'null'

Key to use when signing

Default valuenullDetails
Type
string
Propertyprotectedstring  $_tokenSecret= ''

Token secret

Details
Type
string

Methods

methodpublic__construct( string $consumerSecret, null|string $tokenSecret = null, null|string $hashAlgo = null ) : void

Constructor

Parameters
Name Type Description
$consumerSecret string
$tokenSecret null|string
$hashAlgo null|string
methodprotected_assembleKey( ) : string

Assemble key from consumer and token secrets

Returns
Type Description
string
methodprotected_getBaseSignatureString( array $params, null|string $method = null, null|string $url = null ) : string

Get base signature string

Parameters
Name Type Description
$params array
$method null|string
$url null|string
Returns
Type Description
string
methodprotected_toByteValueOrderedQueryString( array $params ) : string

Transform an array to a byte value ordered query string

Parameters
Name Type Description
$params array
Returns
Type Description
string
methodpublicnormaliseBaseSignatureUrl( string $url ) : string

Normalize the base signature URL

Parameters
Name Type Description
$url string
Returns
Type Description
string
methodpublicsign( array $params, null|string $method = null, null|string $url = null ) : string
abstract

Sign a request

Parameters
Name Type Description
$params array
$method null|string
$url null|string
Returns
Type Description
string
Documentation was generated by DocBlox 0.13.3.