RefreshableTokenProviderInterface.php 423 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Aws\Token;
  3. /**
  4. * Provides access to an AWS token used for accessing AWS services
  5. *
  6. */
  7. interface RefreshableTokenProviderInterface
  8. {
  9. /**
  10. * Attempts to refresh this token object
  11. *
  12. * @return Token | Exception
  13. */
  14. public function refresh();
  15. /**
  16. * Check if a refresh should be attempted
  17. *
  18. * @return boolean
  19. */
  20. public function shouldAttemptRefresh();
  21. }