SignatureInterface.php 588 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace OAuth\OAuth1\Signature;
  3. use OAuth\Common\Consumer\CredentialsInterface;
  4. use OAuth\Common\Http\Uri\UriInterface;
  5. interface SignatureInterface
  6. {
  7. /**
  8. * @param string $algorithm
  9. */
  10. public function setHashingAlgorithm($algorithm);
  11. /**
  12. * @param string $token
  13. */
  14. public function setTokenSecret($token);
  15. /**
  16. * @param UriInterface $uri
  17. * @param array $params
  18. * @param string $method
  19. *
  20. * @return string
  21. */
  22. public function getSignature(UriInterface $uri, array $params, $method = 'POST');
  23. }