Oauth/Token.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Oauth
- Version
- $Id$
\Zend_Oauth_Token
- Children
- \Zend_Oauth_Token_AuthorizedRequest
- \Zend_Oauth_Token_Request
- \Zend_Oauth_Token_Access
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods

__construct(null | \Zend_Http_Response $response = null, null | \Zend_Oauth_Http_Utility $utility = null) : voidConstructor; basic setup for any Token subclass.
| Name | Type | Description |
|---|---|---|
| $response | null | \Zend_Http_Response | |
| $utility | null | \Zend_Oauth_Http_Utility |

__get( $key) : stringGeneric accessor to enable access as public properties.
| Name | Type | Description |
|---|---|---|
| $key |
| Type | Description |
|---|---|
| string |

__set(string $key, string $value) : voidGeneric mutator to enable access as public properties.
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |

__toString() : stringConvert Token to a string, specifically a raw encoded query string.
| Type | Description |
|---|---|
| string |

_parseParameters(\Zend_Http_Response $response) : arrayParse a HTTP response body and collect returned parameters as raw url decoded key-value pairs in an associative array.
| Name | Type | Description |
|---|---|---|
| $response | \Zend_Http_Response |
| Type | Description |
|---|---|
| array |

getParam(string $key) : mixedGet the value for a parameter (e.g. token secret or other).
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| mixed |

getResponse() : \Zend_Http_ResponseReturn the HTTP response object used to initialise this instance.
| Type | Description |
|---|---|
| \Zend_Http_Response |

getTokenSecret() : stringRetrieve this Token's secret which may be used when signing requests with this Token.
| Type | Description |
|---|---|
| string |

isValid() : boolAttempts to validate the Token parsed from the HTTP response - really it's just very basic existence checks which are minimal.
| Type | Description |
|---|---|
| bool |

setParam(string $key, string $value) : \Zend_Oauth_TokenSets the value for a parameter (e.g. token secret or other) and run a simple filter to remove any trailing newlines.
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |
| Type | Description |
|---|---|
| \Zend_Oauth_Token |

setParams(array $params) : \Zend_Oauth_TokenSets the value for some parameters (e.g. token secret or other) and run a simple filter to remove any trailing newlines.
| Name | Type | Description |
|---|---|---|
| $params | array |
| Type | Description |
|---|---|
| \Zend_Oauth_Token |

setToken(string $token) : \Zend_Oauth_TokenSets the value for a Token.
| Name | Type | Description |
|---|---|---|
| $token | string |
| Type | Description |
|---|---|
| \Zend_Oauth_Token |

setTokenSecret(string $secret) : \Zend_Oauth_TokenSets the value for the this Token's secret which may be used when signing requests with this Token.
| Name | Type | Description |
|---|---|---|
| $secret | string |
| Type | Description |
|---|---|
| \Zend_Oauth_Token |