sign($request, $consumer, $token); * * [!!] This method implements [OAuth 1.0 Spec 9.4.1](http://oauth.net/core/1.0/#rfc.section.9.4.1). * * @param OAuth_Request request * @param OAuth_Consumer consumer * @param OAuth_Token token * @return $this */ public function sign(OAuth_Request $request, OAuth_Consumer $consumer, OAuth_Token $token = NULL) { // Use the signing key as the signature return $this->key($consumer, $token); } /** * Verify a plaintext signature. * * if ( ! $signature->verify($signature, $request, $consumer, $token)) * { * throw new Kohana_OAuth_Exception('Failed to verify signature'); * } * * [!!] This method implements [OAuth 1.0 Spec 9.4.2](http://oauth.net/core/1.0/#rfc.section.9.4.2). * * @param string signature to verify * @param OAuth_Request request * @param OAuth_Consumer consumer * @param OAuth_Token token * @return boolean * @uses OAuth_Signature_PLAINTEXT::sign */ public function verify($signature, OAuth_Request $request, OAuth_Consumer $consumer, OAuth_Token $token = NULL) { return $signature === $this->key($consumer, $token); } } // End OAuth_Signature_PLAINTEXT