1
0

TokenTypeInterface.php 433 B

123456789101112131415161718192021
  1. <?php
  2. namespace OAuth2\TokenType;
  3. use OAuth2\RequestInterface;
  4. use OAuth2\ResponseInterface;
  5. interface TokenTypeInterface
  6. {
  7. /**
  8. * Token type identification string
  9. *
  10. * ex: "bearer" or "mac"
  11. */
  12. public function getTokenType();
  13. /**
  14. * Retrieves the token string from the request object
  15. */
  16. public function getAccessTokenParameter(RequestInterface $request, ResponseInterface $response);
  17. }