summaryrefslogtreecommitdiff
path: root/vendor/lusitanian/oauth/src/OAuth/OAuth1/Signature/SignatureInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/lusitanian/oauth/src/OAuth/OAuth1/Signature/SignatureInterface.php')
-rw-r--r--vendor/lusitanian/oauth/src/OAuth/OAuth1/Signature/SignatureInterface.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/lusitanian/oauth/src/OAuth/OAuth1/Signature/SignatureInterface.php b/vendor/lusitanian/oauth/src/OAuth/OAuth1/Signature/SignatureInterface.php
new file mode 100644
index 00000000..da50ddb6
--- /dev/null
+++ b/vendor/lusitanian/oauth/src/OAuth/OAuth1/Signature/SignatureInterface.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace OAuth\OAuth1\Signature;
+
+use OAuth\Common\Consumer\CredentialsInterface;
+use OAuth\Common\Http\Uri\UriInterface;
+
+interface SignatureInterface
+{
+ /**
+ * @param string $algorithm
+ */
+ public function setHashingAlgorithm($algorithm);
+
+ /**
+ * @param string $token
+ */
+ public function setTokenSecret($token);
+
+ /**
+ * @param UriInterface $uri
+ * @param array $params
+ * @param string $method
+ *
+ * @return string
+ */
+ public function getSignature(UriInterface $uri, array $params, $method = 'POST');
+}