Oauth/Signature/Hmac.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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Oauth
- Version
- $Id: Hmac.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Oauth_Signature_Hmac
Package: Zend\Oauth
- Parent(s)
- \Zend_Oauth_Signature_SignatureAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


string $_consumerSecret = null
Default value
null
Details- Type
- string
- Inherited_from
- \Zend_Oauth_Signature_SignatureAbstract::$$_consumerSecret


string $_hashAlgorithm = null
inherited
Hash algorithm to use when generating signature
Inherited from: \Zend_Oauth_Signature_SignatureAbstract::$$_hashAlgorithm
Default value
null
Details- Type
- string
- Inherited_from
- \Zend_Oauth_Signature_SignatureAbstract::$$_hashAlgorithm


string $_key = null
Default value
null
Details- Type
- string
- Inherited_from
- \Zend_Oauth_Signature_SignatureAbstract::$$_key


string $_tokenSecret = ''
Default value
''
Details- Type
- string
- Inherited_from
- \Zend_Oauth_Signature_SignatureAbstract::$$_tokenSecret
Methods


__construct(string $consumerSecret, null | string $tokenSecret = null, null | string $hashAlgo = null) : void
Parameters
Name | Type | Description |
---|---|---|
$consumerSecret | string | |
$tokenSecret | null | string | |
$hashAlgo | null | string |


_assembleKey() : string
inherited
Assemble key from consumer and token secrets
Inherited from: \Zend_Oauth_Signature_SignatureAbstract::_assembleKey()
Returns
Type | Description |
---|---|
string |


_getBaseSignatureString(array $params, null | string $method = null, null | string $url = null) : string
inherited
Get base signature string
Inherited from: \Zend_Oauth_Signature_SignatureAbstract::_getBaseSignatureString()
Parameters
Returns
Name | Type | Description |
---|---|---|
$params | array | |
$method | null | string | |
$url | null | string |
Type | Description |
---|---|
string |


_toByteValueOrderedQueryString(array $params) : string
inherited
Transform an array to a byte value ordered query string
Inherited from: \Zend_Oauth_Signature_SignatureAbstract::_toByteValueOrderedQueryString()
Parameters
Returns
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
string |


normaliseBaseSignatureUrl(string $url) : string
inherited
Normalize the base signature URL
Inherited from: \Zend_Oauth_Signature_SignatureAbstract::normaliseBaseSignatureUrl()
Parameters
Returns
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
string |