1: <?php
2: /**
3: * Copyright 2008-2012 Horde LLC (http://www.horde.org/)
4: *
5: * @author Chuck Hagenbuch <chuck@horde.org>
6: * @license http://www.horde.org/licenses/bsd BSD
7: * @category Horde
8: * @package Oauth
9: */
10:
11: /**
12: * OAuth abstract signature method base class
13: *
14: * @author Chuck Hagenbuch <chuck@horde.org>
15: * @license http://www.horde.org/licenses/bsd BSD
16: * @category Horde
17: * @package Oauth
18: */
19: abstract class Horde_Oauth_SignatureMethod
20: {
21: abstract public function getName();
22:
23: abstract public function sign($request, $consumer, $token);
24:
25: public function verify($signature, $request, $consumer, $token)
26: {
27: return $signature == $this->sign($request, $consumer, $token);
28: }
29: }
30: