diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 22:24:03 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 22:24:03 -0400 |
commit | 560a12f0bd6347a335f8ed5201d6d9562d03d4bc (patch) | |
tree | 00510d25c1cf5e747573543fa88d44ef003b1c9a /vendor/OAuth/Common/Token/TokenInterface.php | |
parent | 9531e439cd99fb7dbcfb039f422f1d1ba414ec30 (diff) |
Add Google authentication
Diffstat (limited to 'vendor/OAuth/Common/Token/TokenInterface.php')
-rwxr-xr-x | vendor/OAuth/Common/Token/TokenInterface.php | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/vendor/OAuth/Common/Token/TokenInterface.php b/vendor/OAuth/Common/Token/TokenInterface.php new file mode 100755 index 00000000..84a41092 --- /dev/null +++ b/vendor/OAuth/Common/Token/TokenInterface.php @@ -0,0 +1,64 @@ +<?php + +namespace OAuth\Common\Token; + +/** + * Base token interface for any OAuth version. + */ +interface TokenInterface +{ + /** + * Denotes an unknown end of life time. + */ + const EOL_UNKNOWN = -9001; + + /** + * Denotes a token which never expires, should only happen in OAuth1. + */ + const EOL_NEVER_EXPIRES = -9002; + + /** + * @return string + */ + public function getAccessToken(); + + /** + * @return int + */ + public function getEndOfLife(); + + /** + * @return array + */ + public function getExtraParams(); + + /** + * @param string $accessToken + */ + public function setAccessToken($accessToken); + + /** + * @param int $endOfLife + */ + public function setEndOfLife($endOfLife); + + /** + * @param int $lifetime + */ + public function setLifetime($lifetime); + + /** + * @param array $extraParams + */ + public function setExtraParams(array $extraParams); + + /** + * @return string + */ + public function getRefreshToken(); + + /** + * @param string $refreshToken + */ + public function setRefreshToken($refreshToken); +} |