name; * * @param string variable name * @return mixed */ public function __get($key) { return $this->$key; } /** * Get a signing key from a consumer and token. * * $key = $signature->key($consumer, $token); * * [!!] This method implements the signing key of [OAuth 1.0 Spec 9](http://oauth.net/core/1.0/#rfc.section.9). * * @param OAuth_Consumer consumer * @param OAuth_Token token * @return string * @uses OAuth::urlencode */ public function key(OAuth_Consumer $consumer, OAuth_Token $token = NULL) { $key = OAuth::urlencode($consumer->secret).'&'; if ($token) { $key .= OAuth::urlencode($token->secret); } return $key; } abstract public function sign(OAuth_Request $request, OAuth_Consumer $consumer, OAuth_Token $token = NULL); abstract public function verify($signature, OAuth_Request $request, OAuth_Consumer $consumer, OAuth_Token $token = NULL); } // End OAuth_Signature