summaryrefslogtreecommitdiff
path: root/vendor/OAuth/OAuth1/Token/StdOAuth1Token.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/OAuth/OAuth1/Token/StdOAuth1Token.php')
-rwxr-xr-xvendor/OAuth/OAuth1/Token/StdOAuth1Token.php75
1 files changed, 75 insertions, 0 deletions
diff --git a/vendor/OAuth/OAuth1/Token/StdOAuth1Token.php b/vendor/OAuth/OAuth1/Token/StdOAuth1Token.php
new file mode 100755
index 00000000..a12a7971
--- /dev/null
+++ b/vendor/OAuth/OAuth1/Token/StdOAuth1Token.php
@@ -0,0 +1,75 @@
+<?php
+
+namespace OAuth\OAuth1\Token;
+
+use OAuth\Common\Token\AbstractToken;
+
+/**
+ * Standard OAuth1 token implementation.
+ * Implements OAuth\OAuth1\Token\TokenInterface in case of any OAuth1 specific features.
+ */
+class StdOAuth1Token extends AbstractToken implements TokenInterface
+{
+ /**
+ * @var string
+ */
+ protected $requestToken;
+
+ /**
+ * @var string
+ */
+ protected $requestTokenSecret;
+
+ /**
+ * @var string
+ */
+ protected $accessTokenSecret;
+
+ /**
+ * @param string $requestToken
+ */
+ public function setRequestToken($requestToken)
+ {
+ $this->requestToken = $requestToken;
+ }
+
+ /**
+ * @return string
+ */
+ public function getRequestToken()
+ {
+ return $this->requestToken;
+ }
+
+ /**
+ * @param string $requestTokenSecret
+ */
+ public function setRequestTokenSecret($requestTokenSecret)
+ {
+ $this->requestTokenSecret = $requestTokenSecret;
+ }
+
+ /**
+ * @return string
+ */
+ public function getRequestTokenSecret()
+ {
+ return $this->requestTokenSecret;
+ }
+
+ /**
+ * @param string $accessTokenSecret
+ */
+ public function setAccessTokenSecret($accessTokenSecret)
+ {
+ $this->accessTokenSecret = $accessTokenSecret;
+ }
+
+ /**
+ * @return string
+ */
+ public function getAccessTokenSecret()
+ {
+ return $this->accessTokenSecret;
+ }
+}